Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
QtTAS 3.0
-
-
7eb93ab08 (dev), 1fc2aa2c5 (3.0)
Description
The "New Qt Project" wizard seems to create a new Qt CMake project and gives the name provided to the project target name and also to URI set with qt_add_qml_module(), that seems to cause a build failure:
[15/15] Creating AAR for QtTASQtAppTarget FAILED: android-build-QtTASQtAppTarget/QtTASQtAppTarget.aar /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-build-QtTASQtAppTarget/QtTASQtAppTarget.aar cd /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp && /Users/assam/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -E copy /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/libQtTASQtAppTarget_x86.so /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-build-QtTASQtAppTarget/libs/x86/libQtTASQtAppTarget_x86.so && /Users/assam/Qt/6.8.0/macos/bin/androiddeployqt --input /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-QtTASQtAppTarget-deployment-settings.json --output /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-build-QtTASQtAppTarget --apk /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-build-QtTASQtAppTarget/QtTASQtAppTarget.aar --depfile /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-build-QtTASQtAppTarget/QtTASQtAppTarget.d --builddir /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp --build-aar "" && /Users/assam/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /Users/assam/AndroidStudioProjects/QtTASQtApp /Users/assam/AndroidStudioProjects/QtTASQtApp /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-build-QtTASQtAppTarget/QtTASQtAppTarget.d /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/CMakeFiles/d/47f1f6ed54f89f311e8d67ce0d072e2f88e502b9334abc85ebfa91558e0da982.d Generating Android Package Input file: /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-QtTASQtAppTarget-deployment-settings.json Output directory: /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-build-QtTASQtAppTarget/ Application binary: QtTASQtAppTarget Android build platform: android-34 Install to device: No A QML module name (QtTASQtAppTarget) cannot be the same as the target name when building with QT_ANDROID_GENERATE_JAVA_QML_COMPONENTS flag. Generating Java QML Components in /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-build-QtTASQtAppTarget//src/org/qtproject/example/QtTASQtAppTarget directory. ninja: build stopped: subcommand failed.