Wrong qmake_qmake_immediate.qrc file location.
Solved
Qt 6
-
I get the following error while building my app for Android x86_64 with QT 6.2:
Generating Android Package Input file: E:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release/android-MyAppQt-deployment-settings.json Output directory: E:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release/android-build/ Application binary: MyAppQt Android build platform: android-30 Install to device: No qmlimportscanner: No such file or directory: "E:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release/x86_64/qmake_qmake_immediate.qrc" Invalid json output from qmlimportscanner. 21:40:27: The process "E:\Qt\Qt6.2\windows\bin\androiddeployqt.exe" exited with code 4. Error while building/deploying project MyAppQt (kit: Android Qt 6.2.0 (android) Clang x86_64) When executing step "Build Android APK"
qmake_qmake_immediate.qrc
actually located inE:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release
, but not inE:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release/x86_64/
what can cause this?
If I manually copy
qmake_qmake_immediate.qrc
file toE:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release/x86_64/
folder the app builds successfully. -
@Dmitriano said in Wrong qmake_qmake_immediate.qrc file location.:
qmlimportscanner
did you add
find_package(Qt6 COMPONENTS QmlImportScanner)
in your cmake file?