Android build works on Qt Creator, but won't work on command-line
-
Hi there..
In Qt Creator, i have created a Qt Widget application for Android Intel and ARM kits.The following command works fine in Qt Creator:
"C:\F\Qt\6.6.3\mingw_64\bin\androiddeployqt.exe" --input C:/P/ND7/build/debug_intel/android-ND7-deployment-settings.json --output C:/P/ND7/build/debug_intel/android-build --android-platform android-33 --jdk C:/F/Qt/Tools/jdk-17.0.13+11 --gradle
APK BUIKD SUCCESS
...but wont to work if i put the same whole command in windows terminal, it says:
"ERROR:C:\P\ND7\build\debug_intel\android-build\build\intermediates\javac\debug\classes\org\qtproject\qt\android\bindings\QtLoader$1.class: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null
ERROR:C:\P\ND7\build\debug_intel\android-build\build\intermediates\javac\debug\c"What could it be?
Thanks. -
Hi @jsulm thanks for answering...
the only shortcut i have for qt environment is Qt 6.6.3 MinGW (11.2.0) 64 bits... i tried with it.. but still cant build for Android... i think it should be somewhere or somehow the same shortcut but for ARM and Intel Kits for Android.... that could have more sense...