Android: Build failed with exception. Could not determine Java version from '11.0.10'
-
@SGaist have you experienced this before? Any feedback would be greatly, greatly appreciated!
-
Hi,
There was an issue in previous versions of Qt Creator with the Java version check that was a bit too restrictive but I think it has been fixed in between.
Which version are you running ?
-
@SGaist thanks for the reply! Qt 5.15.2
-
Maybe something wrong with 'Compilers', it sometimes become broken after replacing JDK and Android SDK, NDK.
Working configuration looks something like that (don't mind NDK version on screenshot - 21.4, it also works with 21.3):
If problem with 'Compilers' and Re-detcting won't help, if you don't have any valuable settings, you can delete whole Qt Creator settings, located at C:\Users%USERNAME%\AppData\Roaming\QtProject or only "toolchains.xml" file. Qt Creator recreates those on startup.
-
I'd like to know if anyone has a follow up on this. I also have this problem but only on projects built with QML. Projects built with QWidgets and C++ build beautifully on Android, Armbian and Windows Desktop without no changes to the underlying code.
In addition I see this warning the the Android Build Settings underneath the Build directory:
Could not parse Makefile. The build will be overwritten.
I've looked at the Makefile and can't see the problem.
Sorry to dig up an old topic but this one exactly describes my problem for QML builds.