[Interest] Android build fails with "Could not determine java version from '11.0.8'" error
Jason H
jhihn at gmx.com
Wed May 19 22:18:16 CEST 2021
Your java is too new. In QtCreator, click the globe in the Devices pane:
JDK Location > [...] [Choose] [globe]
and select OpenJDK 8.
> Sent: Wednesday, May 19, 2021 at 2:40 PM
> From: "Alexander Dyagilev" <alervdvcw at gmail.com>
> To: "Qt Project" <interest at qt-project.org>
> Subject: [Interest] Android build fails with "Could not determine java version from '11.0.8'" error
>
> Hello,
>
> My project builds fine on my old laptop (Qt Creator 4.15.0 + Qt 5.12.10).
>
> I'm setting up development environment on my new laptop.
>
> Just installed Android Studio + Qt Creator + Qt 5.12.10.
>
> All Android settings are fine in Qt Creator (as it reports).
>
> However, androiddeployqt.exe fails with this strange error. Any help,
> please? :)
>
> 21:33:10: Starting:
> "C:\Work\Qt\5.12.10\android_armv7\bin\androiddeployqt.exe" --input
> C:/Work/Source/build-fdm-Android_Qt_5_12_10_Clang_armeabi_v7a-Debug/ui/android-libfdm.so-deployment-settings.json
> --output
> C:/Work/Source/build-fdm-Android_Qt_5_12_10_Clang_armeabi_v7a-Debug/android-build
> --android-platform android-30 --jdk "C:/Program Files/Android/Android
> Studio/jre" --gradle
> Generating Android Package
> Input file:
> C:/Work/Source/build-fdm-Android_Qt_5_12_10_Clang_armeabi_v7a-Debug/ui/android-libfdm.so-deployment-settings.json
> Output directory:
> C:/Work/Source/build-fdm-Android_Qt_5_12_10_Clang_armeabi_v7a-Debug/android-build/
> Application binary:
> C:/Work/Source/build-fdm-Android_Qt_5_12_10_Clang_armeabi_v7a-Debug/bin/libfdm.so
> Android build platform: android-30
> Install to device: No
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Could not determine java version from '11.0.8'.
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
More information about the Interest
mailing list