Android deploy error after add manifest file.
-
I have project that I successfully deployed to Android device without manifest.
But, after I add manifest via wizard, I recieving next error during deploy:Cannot find android sources in C:/job/Actoo/ActooGui/ActooGui/android23:28:06: The process "C:\Qt\5.3\android_armv7\bin\androiddeployqt.exe" exited with code 11.
Error while building/deploying project ActooProject (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.3.1))
When executing step "Deploy to Android device"I have Windows 7 64 bit, Qt 5.3.1, Qt Creator 3.2.0, jdk-8u20, sdk - adt-bundle-x86_64-20140702, ndk - r10.
-
Ok, this is a bug.
Qt Creator generated file android-libActooGui.so-deployment-settings.json, where source dir setted with duplicate ActooGui:
@"android-package-source-directory": "C:/job/Actoo/ActooGui/ActooGui/android"@
but must be
@"android-package-source-directory": "C:/job/Actoo/ActooGui/android"@ -
Hi,
Can you reproduce it with a default project ?
-
[quote author="topocc" date="1409617576"]compile opencv static,
QDir::relative path, result path.[/quote]
What does it have to do with the current question ?
-
It might not be the fastest solution, but you could bring the content of your non-working project in the new working one to see if it works.
-
[quote author="SGaist" date="1410116564"]It might not be the fastest solution, but you could bring the content of your non-working project in the new working one to see if it works.[/quote]
For me better just edit android-libActooGui.so-deployment-settings.json file.
May be will try in future debug android deployment qt utility and will find where and why appears wrong duplicate. -
Does anyone knows a workaround for this bug other than editing the .json by hand everytime you want to deploy?
(What would it mean to reproduce it with a default project?)
-
Does anyone knows a workaround for this bug other than editing the .json by hand everytime you want to deploy?
(What would it mean to reproduce it with a default project?)
-
Found it!
I must edit my .pro file in this line that the wizard added:
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/<Project name>/androidAnd remove the project name leaving just:
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/androidAll done.
-
Found it!
I must edit my .pro file in this line that the wizard added:
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/<Project name>/androidAnd remove the project name leaving just:
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/androidAll done.