Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24557

AndroidManifest editor: "Cannot switch to source when there are invalid services"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • Qt Creator 4.13.0
    • Android Support
    • None
    • Android

    Description

      When trying to switch from 'General' to 'XML Source' Qt Creator shows error message: "Cannot switch to source when there are invalid services"

      I have correctly declared TileService (https://developer.android.com/reference/android/service/quicksettings/TileService) in AndroidManifest.xml:

      <service android:name=".QSTileService" android:label="My Tile Service" android:icon="@drawable/icon" android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"> <intent-filter> <action android:name="android.service.quicksettings.action.QS_TILE"/> </intent-filter></service>
      

      Same issue happens with other correct Android service declarations e.g. https://code.qt.io/cgit/qt/qtandroidextras.git/tree/examples/androidextras/services/servicesameprocess?h=5.15)

      That new GUI Android service editor feature with its incorrect enforcing checks currently breaks AndroidManifest editor experience.

      Correct service declaration should have only 1 mandatory attribute (android:name) : <service android:name="string"> </service>

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            villevoutilainen_qt Ville Voutilainen
            morte Maxim Bescherevnykh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes