Unsolved Unable to build project on Android with Qt 5.14: qmlimportscanner: No such file or directory
-
I am trying to build my Qt app for Android using Qt 5.14 which allows the possibility to create an app bundle that allows to deploy one single file for different architecture. My app builds fine with 5.13.1 but when I try with Qt 5.14 I get this:
qmlimportscanner: No such file or directory: "/home/casa/build-NotiziePLUS-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Release/qmake_qmake_qm_files.qrc" Invalid json output from qmlimportscanner.
I am not really sure what the source of this error could be, I assume it must have to do with translation file but that's just a guess.
-
@daljit97 I've a similar problem here. In my case, the qmake generated android-*-deployment-settings.json contains the wrong path for qmake_qmake_qm_files.qrc.
-
Thanks for the bug report. Unfortunately, for now I just conveniently switched back to Qt 5.13 and everything works there.
-
@daljit97 said in Unable to build project on Android with Qt 5.14: qmlimportscanner: No such file or directory:
I am trying to build my Qt app for Android using Qt 5.14 which allows the possibility to create an app bundle that allows to deploy one single file for different architecture. My app builds fine with 5.13.1 but when I try with Qt 5.14 I get this:
qmlimportscanner: No such file or directory: "/home/casa/build-NotiziePLUS-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Release/qmake_qmake_qm_files.qrc" Invalid json output from qmlimportscanner.
I am not really sure what the source of this error could be, I assume it mcdvoice survey must have to do with translation file but that's just a guess.
i think you might be right bcoz i have similer problem.
-
Android Templates are different between 5.13 and 5.14 - have you (re)created your templates on 5.14 ?
-
@ekkescorner said in Unable to build project on Android with Qt 5.14: qmlimportscanner: No such file or directory:
Android Templates are different between 5.13 and 5.14 - have you (re)created your templates on 5.14 ?
I've regenerated templates, however got same errors:
qmlimportscanner: No such file or directory: ".../Code/build-MyApp-Android_Qt_5_15_1_Clang_Multi_Abi-Debug/rcc/arm64-v8a/qmake_qmake_qm_files.qrc" Invalid json output from qmlimportscanner. 19:38:59: The process "~/Qt/5.15.1/android/bin/androiddeployqt" exited with code 4. Error while building/deploying project qgroundcontrol (kit: Android Qt 5.15.1 Clang Multi-Abi) When executing step "Build Android APK"
Any other ideas?
-
Seems Qt bug: https://bugreports.qt.io/browse/QTBUG-81477?focusedCommentId=532414&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-532414 as it searches for
qmake_qmake_qm_files.qrc
in wrong dir. -
Nevermind, solved, removed unncecessary assignment
RCC_DIR = $${OUT_PWD}/rcc
in old project.pro
file.