New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Build] Android: The minimum API level required by the kit is 16 or source Qt file does not exist QtAndroidAccessibility-bundled.jar #818
Comments
Qt 5.7 changed a number of things with regard to Android, and this may need changes to the Mapper build system. Until Qt 5.6, you would probably need API levels 10, 11, 16 and 18 (you may need to check the "Obsolete" checkbox to see these in the SDK manager) (cf. https://wiki.qt.io/Qt5ForAndroidBuilding). Mapper for Android is expected to build without Qt Network. I fixed it 5 days ago (7bf3f89). |
I tested with Qt5.6.2 but I face other errors: First one: Second one:
|
"Undefined references" indicate that your build is not clean. Obviously the method was found in the header. The libqjp2.so plugin deployment can be removed in src/src.pro (and .in). This is the Jpeg2000 plugin, which is no longer part of standard builds of Qt since 5.6 (or you can build it from the Qt sources). |
That was the last piece of the puzzle! I was finally able to run Mapper on my device after commenting out |
For info, if you plan to support newer Qt versions, you have to:
|
Steps to reproduce
oo-mapper.pro
in QtCreator and compile it with Android for armeabi-v7aActual behaviour
QtCreator yields:
Expected behaviour
APK should be built.
Configuration
Mapper Version: master
Operating System: Debian unstable.
Android SDK: I installed Android SDK Tools 25.2.4, Android SDK Platform-tools 25.0.3, Android SDK Build-tools 25.0.2 and 24.0.2 and 23.0.3. Also installed Android API 25, 24, 23, 22, 21, 20, 19, 17, 9 and Android Support Repository 41.
Alternative work-around which fails too
If I modify
AndroidManifest.xml
and bumpandroid:minSdkVersion
to16
(instead of9
), then application is compiled (except georeferenceing_dialog.cpp which does not compile due to missingQT_NETWORK_LIB
. I had to comment out that section), but once QtCreator tries to build the APK it complains that:QtAndroidAccessibility-bundled.jar
file is NOT shipped in Qt5.7.1. I am fine with Android development in general, but I never used QtCreator before and I am not sure how/what is causing this build error here. Should I use a specific Android SDK version? Specific QtCreator version? Something unrelated? Is the kit not properly configured?The text was updated successfully, but these errors were encountered: