Building Android package with Qt5.15.0 works fine but Qt5.15.2 fails
Frans Fürst
frans.fuerst at protonmail.com
Sun Jan 10 09:10:06 GMT 2021
Hi, me again, trying to build the demo for Android!
After I failed to build the demo with a self-built Qt I'm now using a pre-built Qt for Android in order to begin with a working scenario (as I should have in the first place).
Building against Qt5.15.0 works fine - but since it seems to be the stable version for a long time now I tried to use Qt5.15.2, using the exact same setup as with Qt.5.15.0 before.
But now - after seemingly all of the compilation runs well, building the Android package throws an error:
ANDROID_SDK_ROOT=/opt/android-sdk/ \
ANDROID_NDK_PLATFORM=android-29 \
ANDROID_NDK_ROOT=/opt/android-sdk/ndk/21.3.6528147/ \
python3 ./build-demo.py --target android-32 \
--qmake /opt/Qt/5.15.2/android/bin/qmake
...
make[1]: Leaving directory '/home/user/demo/build-android-32'
/opt/Qt/5.15.2/android/bin/androiddeployqt --input /home/user/demo/build-android-32/android-pyqt-demo-deployment-settings.json --output /home/user/demo/build-android-32/android-build --apk /home/user/demo/build-android-32/android-build/pyqt-demo.apk
Generating Android Package
Input file: /home/user/demo/build-android-32/android-pyqt-demo-deployment-settings.json
Output directory: /home/user/demo/build-android-32/android-build/
Application binary: pyqt-demo
Android build platform: android-29
Install to device: No
-- Skipping /opt/Qt/5.15.2/android/plugins/iconengines/libplugins_iconengines_qsvgicon_armeabi-v7a.so. It has unmet dependencies: lib/libQt5Svg_armeabi-v7a.so.
-- Skipping /opt/Qt/5.15.2/android/plugins/imageformats/libplugins_imageformats_qsvg_armeabi-v7a.so. It has unmet dependencies: lib/libQt5Svg_armeabi-v7a.so.
Skipping createRCC
Downloading https://services.gradle.org/distributions/gradle-5.6.4-bin.zip
.........................................................................................
Unzipping /home/user/demo/build-android-32/android-build/?/.gradle/wrapper/dists/gradle-5.6.4-bin/bxirm19lnfz6nurbatndyydux/gradle-5.6.4-bin.zip to /home/user/demo/build-android-32/android-build/?/.gradle/wrapper/dists/gradle-5.6.4-bin/bxirm19lnfz6nurbatndyydux
Set executable permissions for: /home/user/demo/build-android-32/android-build/?/.gradle/wrapper/dists/gradle-5.6.4-bin/bxirm19lnfz6nurbatndyydux/gradle-5.6.4/bin/gradle
Welcome to Gradle 5.6.4!
Here are the highlights of this release:
- Incremental Groovy compilation
- Groovy compile avoidance
- Test fixtures for Java projects
- Manage plugin versions via settings script
For more details see https://docs.gradle.org/5.6.4/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* Where:
Build file '/home/user/demo/build-android-32/android-build/build.gradle' line: 17
* What went wrong:
A problem occurred evaluating root project 'android-build'.
> Failed to apply plugin [id 'com.android.internal.application']
> java.io.IOException: No such file or directory
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 28s
Building the android package failed!
-- For more information, run this command with --verbose.
make: *** [Makefile:350: apk] Error 14
Searching for "Failed to apply plugin [id 'com.android.internal.application']" returns me a couple of gradle reated (but old) results which recommend to modify "build.gradle" to use a more recent version of gradle but this doesn't seem to have any effect.
I will now try to analyse the differences between qt5.15.0 and
qt5.15.2 but maybe someone has done this before and give me a hint?
Thanks, Frans
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210110/e32cc298/attachment.htm>
More information about the PyQt
mailing list