Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.19
-
None
Description
Description:-
Qt 5.15.19 fails to build an example application for Android using OpenJDK 21
Environment:
- Qt Version: 5.15.19
- Qt Creator Version: 14.0.2
- Operating System: Android 14
- JDK Version: OpenJDK 21 (Fails), OpenJDK 17 (Works)
Expected Behavior: The application should successfully build and deploy on an Android device using Qt Creator with OpenJDK 21.
Actual Behavior:
- Attempting to build the example application for Android using OpenJDK 21 results in a failure.
- Downgrading to OpenJDK 17 allows the application to build and deploy successfully on Android.
Steps to Reproduce:
- Install Qt 5.15.19 and configure Qt Creator for Android development.
- Set up OpenJDK 21 as the JDK in Qt Creator.
- Open any example application and configure it for Android.
- Attempt to build the application.
- Observe the build failure with an error message.
- Change JDK to OpenJDK 17 and rebuild.
- Observe that the application builds and deploys successfully.
Workarounds Attempted:
- Reinstalling OpenJDK 21.
- Using different Gradle versions.
- Ensuring correct Android SDK and NDK versions.
- Switching to OpenJDK 17 (which resolved the issue).
Additional Notes:
- The issue is specifically observed with OpenJDK 21, while OpenJDK 17 works without problems.
- Qt documentation does not explicitly mention OpenJDK 21 incompatibility. https://doc.qt.io/qt-5/android-getting-started.html