Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-127379

Service Embedding manual test doesn't build

    XMLWordPrintable

Details

    • Android
    • aa490b1cb (dev), f52b37ae8 (6.8)

    Description

       

      Steps to reproduce:

      • Install Qt 6.8.0 beta 2
      • Install Android Studio
      • Open Service Embedding manual test in Android Studio
      • Add qtbuild.properties and keystore.properties as per instructions in README.md
      • Make project

      Expection:

       Project gets made

      Reality:

      Qt build fails while androiddeployqt'ing

      FAILED: android-build/qml_in_android_service.aar /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_java_based_android_project/app/build/qt_generated/qml_in_android_service/android-build/qml_in_android_service.aar 
      cd /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_java_based_android_project/app/build/qt_generated/qml_in_android_service && /Users/ollivuolteenaho/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -E copy /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_java_based_android_project/app/build/qt_generated/qml_in_android_service/libqml_in_android_service_arm64-v8a.so /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_java_based_android_project/app/build/qt_generated/qml_in_android_service/android-build/libs/arm64-v8a/libqml_in_android_service_arm64-v8a.so && /Users/ollivuolteenaho/Qt/6.8.0/macos/bin/androiddeployqt --input /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_java_based_android_project/app/build/qt_generated/qml_in_android_service/android-qml_in_android_service-deployment-settings.json --output /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_java_based_android_project/app/build/qt_generated/qml_in_android_service/android-build --apk /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_java_based_android_project/app/build/qt_generated/qml_in_android_service/android-build/qml_in_android_service.aar --depfile /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_java_based_android_project/app/build/qt_generated/qml_in_android_service/android-build/qml_in_android_service.d --builddir /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_java_based_android_project/app/build/qt_generated/qml_in_android_service --build-aar "" && /Users/ollivuolteenaho/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_android_service /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_android_service /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_java_based_android_project/app/build/qt_generated/qml_in_android_service /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_java_based_android_project/app/build/qt_generated/qml_in_android_service /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_java_based_android_project/app/build/qt_generated/qml_in_android_service/android-build/qml_in_android_service.d /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_java_based_android_project/app/build/qt_generated/qml_in_android_service/CMakeFiles/d/db93c686357a55faa0daac5836509978492532bdb47c99995bf5caf2db3755c7.d
      Generating Android Package
        Input file: /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_java_based_android_project/app/build/qt_generated/qml_in_android_service/android-qml_in_android_service-deployment-settings.json
        Output directory: /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_java_based_android_project/app/build/qt_generated/qml_in_android_service/android-build/
        Application binary: qml_in_android_service
        Android build platform: android-34
        Install to device: No
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Windows
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.macOS
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.iOS
      A QML module name (qml_in_android_service) cannot be the same as the target name when building with QT_ANDROID_GENERATE_JAVA_QML_COMPONENTS flag.
      Generating Java QML Components in /Users/ollivuolteenaho/dev/qtdeclarative/tests/manual/platforms/android/qml_in_java_based_android_project/app/build/qt_generated/qml_in_android_service/android-build//src/org/qtproject/example/qml_in_android_service directory.
      ninja: build stopped: subcommand failed.
      > Task :app:QtBuildTask FAILED

      This is probably the important bit: A QML module name (qml_in_android_service) cannot be the same as the target name when building with QT_ANDROID_GENERATE_JAVA_QML_COMPONENTS flag. 

      Attachments

        For Gerrit Dashboard: QTBUG-127379
        # Subject Branch Project Status CR V

        Activity

          People

            pevirkku Petri Virkkunen
            olvuolte Olli Vuolteenaho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes