Qt 5.8-Android: When executing step "Build Android APK" Error Message
Hi; I'm using Qt 5.8. When I compile QtQuick Controls 2 app for Android, I get this error message:
Android build platform: android-25 Install to device: No qmlimportscanner: No such file or directory: "/home/Username/My" Invalid json output from qmlimportscanner. 20:02:18: The process "/home/Username/Qt/5.8/android_x86/bin/androiddeployqt" exited with code 4. Error while building/deploying project QtMobileApp (kit: Android for x86 (GCC 4.9, Qt 5.8.0)) When executing step "Build Android APK" 20:02:18: Elapsed time: 00:04.
What is reason of the problem? Thanks.
Looks strange... Do you have a space in the path of your project ?
@SGaist thanks, yes, my project path has space like this:
/home/Username/My Projects/QtMobileApp. I change the path like this:
/home/Username/QtMobileAppand it's works! But I have never encountered such an error before.
Might be a limitation in qmlscanner.
Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has ben found :)
@Ibrahim one thing I learned last 15 years using IDEs like Eclipse, QtCreator: never use spaces in pathes ;-)
@SGaist Your suggestion helped me. tkanks...