Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.8.0 Beta1, 6.8.0 Beta3
Description
Install Qt 6.8.0 beta3 snapshot (qt5 f68d6a976c9c9b4ab7de9c85ec93cc6a5bb0c8c9) Android binaries, linux used as host in report. Configure application nfc/annotatedurl
/home/qt/RTA/Qt_6.8.0/6.8.0/android_x86/bin/qt-cmake -S /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl -B /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86 -DANDROID_SDK_ROOT=/opt/android/sdk -DANDROID_NDK_ROOT=/opt/android/android-ndk-r26b -GNinja
-> ok
Build
cmake --build /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86 --target all
-> fail:
[1/10] Automatic MOC and UIC for target annotatedurl [2/10] Running AUTOMOC file extraction for target annotatedurl [3/10] Running moc --collect-json for target annotatedurl [4/10] Building CXX object CMakeFiles/annotatedurl.dir/main.cpp.o [5/10] Building CXX object CMakeFiles/annotatedurl.dir/annotatedurl.cpp.o [6/10] Building CXX object CMakeFiles/annotatedurl.dir/mainwindow.cpp.o [7/10] Building CXX object CMakeFiles/annotatedurl.dir/annotatedurl_autogen/mocs_compilation.cpp.o [8/10] Linking CXX shared module libannotatedurl_x86.so [9/10] Copying annotatedurl binary to apk folder [10/10] Creating APK for annotatedurl FAILED: android-build/annotatedurl.apk /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86/android-build/annotatedurl.apk cd /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86 && /home/qt/RTA/Qt_6.8.0/Tools/CMake/bin/cmake -E copy /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86/libannotatedurl_x86.so /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86/android-build/libs/x86/libannotatedurl_x86.so && /home/qt/RTA/Qt_6.8.0/6.8.0/gcc_64/bin/androiddeployqt --input /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86/android-annotatedurl-deployment-settings.json --output /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86/android-build --apk /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86/android-build/annotatedurl.apk --depfile /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86/android-build/annotatedurl.d --builddir /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86 "" && /home/qt/RTA/Qt_6.8.0/Tools/CMake/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86 /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86 /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86/android-build/annotatedurl.d /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86/CMakeFiles/d/4f12cfa1794221020e4e12d6e3ce795ebb54ba009fe99d00bbea46c69640e13f.d Generating Android Package Input file: /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86/android-annotatedurl-deployment-settings.json Output directory: /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86/android-build/ Application binary: annotatedurl Android build platform: android-34 Install to device: No Skipping createRCC > Task :preBuild UP-TO-DATE > Task :preDebugBuild UP-TO-DATE > Task :mergeDebugNativeDebugMetadata NO-SOURCE > Task :javaPreCompileDebug > Task :checkDebugAarMetadata > Task :generateDebugResValues > Task :mapDebugSourceSetPaths > Task :generateDebugResources > Task :packageDebugResources > Task :mergeDebugResources > Task :createDebugCompatibleScreenManifests > Task :parseDebugLocalResources > Task :extractDeepLinksDebug > Task :processDebugMainManifest package="org.qtproject.annotatedurl" found in source AndroidManifest.xml: /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86/android-build/AndroidManifest.xml. Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored. Recommendation: remove package="org.qtproject.annotatedurl" from the source AndroidManifest.xml: /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86/android-build/AndroidManifest.xml. > Task :processDebugManifest > Task :mergeDebugShaders > Task :compileDebugShaders NO-SOURCE > Task :generateDebugAssets UP-TO-DATE > Task :mergeDebugAssets > Task :compressDebugAssets > Task :processDebugManifestForPackage > Task :processDebugJavaRes NO-SOURCE > Task :checkDebugDuplicateClasses > Task :mergeDebugStartupProfile > Task :mergeLibDexDebug > Task :mergeDebugJavaResource > Task :processDebugResources FAILED > Task :mergeDebugJniLibFolders FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':processDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction > Android resource linking failed ERROR: /home/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/nfc/annotatedurl/bld_x86/android-build/AndroidManifest.xml:15:5-34:19: AAPT: error: resource drawable/icon (aka org.qtproject.annotatedurl:drawable/icon) not found. * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. BUILD FAILED in 1s > Task :desugarDebugFileDependencies 23 actionable tasks: 23 executed Building the android package failed! -- For more information, run this command with --verbose. ninja: build stopped: subcommand failed.
Works with Qt 6.7.2 Android binaries.
Attachments
Issue Links
- duplicates
-
QTBUG-127407 annotatedurl example build failing
- Closed