[Interest] Android build fails with "Could not determine java version from '11.0.8'" error

Alexander Dyagilev alervdvcw at gmail.com
Wed May 19 20:40:27 CEST 2021


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'.



More information about the Interest mailing list