Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.11
-
None
-
Windows 10
Android build
5.11 (dev)
Description
When building for Android on Windows and using shadow builds the android template data is copied incorrectly. This is because the the res folder is copied incorrectly on Windows:
qtbase/src/android/templates/templates.pro:
QMAKE_POST_LINK += \ $${QMAKE_COPY} $$shell_path($$PWD/AndroidManifest.xml) $$OUT_PATH $$RETURN \ $${QMAKE_COPY} $$shell_path($$PWD/build.gradle) $$OUT_PATH $$RETURN \ $${QMAKE_COPY_DIR} $$shell_path($$PWD/res) $$OUT_PATH
On windows for the last line it will generate the following in the Makefile:
xcopy /s /q /y /i Q:\Code\qt5-dev\qtbase\src\android\templates\res Q:\Code\qt5-5.11-android\qtbase\src\android\templates
And that will copy the contents of qtbase\src\android\templates\res instead of the res folder itself.
And Since AndroidDeployQt depends on the this directory structure being correct, it will then be impossible to package APK files for Android deployment.