[Interest] Android build fails with "Could not determine java version from '11.0.8'" error
Alexander Dyagilev
alervdvcw at gmail.com
Wed May 19 23:48:51 CEST 2021
Thank you!
I installed OpenJDK 8, set its path in Qt Creator (C:\Program
Files\AdoptOpenJDK\jdk-8.0.292.10-hotspot) and now it works fine.
On 5/19/2021 11:18 PM, Jason H wrote:
> 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