Unsolved Unsuccessful APK Build with higher androidBuildToolsVersion
-
Greetings,
I can successfully build apk with
androidBuildToolsVersion=28.0.3
. However, the build fails if I use any higher version such asandroidBuildTools 33.0.0
.SDK Version: 26.1.1
NDK Version: 19.2.5345600
Qt 5.13.1:compileDebugAidl FAILED
FAILURE: Build failed with an exception
.
*What went wrong:
Execution failed for task ':compileDebugAidl'.
How can I potentially solve this issue?
Also, how can I add higher APIs under Target SDK in AndroidManifest File (Currently: API29: Android 9)
-
@ahsan737 said in Unsuccessful APK Build with higher androidBuildToolsVersion:
How can I potentially solve this issue?
I'm not an Android expert but maybe you need a newer Qt version? 5.13.1 is quite old already.
-
thanks for your response.
I've already tried building with a higher Qt version, but I have faced build errors.When I load the project in Qt (5.13.1), it shows the following messages.
Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
How can I make it not version-specific?
-
@ahsan737 said in Unsuccessful APK Build with higher androidBuildToolsVersion:
How can I make it not version-specific?
Don't use private headers from Qt.
-
@ahsan737 Android 9 has API 28. Android 10 has API 29. They have to match. And you need the proper version of JDK as well.
-
@JoeCFD
thanks, how to check which version of JDK is appropriate, or should I go with the latest one? -
@ahsan737 said in Unsuccessful APK Build with higher androidBuildToolsVersion:
how to check which version of JDK is appropriate
-
@ahsan737 https://developer.android.com/about/versions/13/features
It still uses JDK 11.https://developer.android.com/about/versions/13/setup-sdk
for gradle change and check gradle version match as well. Qt has a default gradle version. You may need to change it as well. Check my previous posts.