Qt Android Deployment Failing

786 Views Asked by At

I have tried to modify the Android template files according to the documentation listed here

In my .pro file I have the following:

ANDROID_PACKAGE_SOURCE_DIR = Android_Files

And my directory structure looks like this:

QtProject
|-- Android_Files
|   |-- AndroidManifest.xml
|
|-- Resources
|-- Source
|-- Application.pro
|-- Application.pro.user

But when my Qt Creator goes to deploy the application, I get the following error:

Cannot find android sources in Android_Files

Am I missing something?

1

There are 1 best solutions below

0
On BEST ANSWER

Android package directory is not right.

Use $PWD to refer to the current project directory

ANDROID_PACKAGE_SOURCE_DIR = $$PWD/Android_Folder_Name

in your case: $$PWD/Android_Files

More info about PWD:

The PWD variable specifies the full path leading to the directory containing the current file being parsed. This can be useful to refer to files within the source tree when writing project files to support shadow builds.