[Android-tools-devel] Build failure - Could not determine java version

fluffrabbit at aol.com fluffrabbit at aol.com
Mon Jul 22 23:51:12 BST 2019


The Debian Android tools are the only way I feel alright about building for droid. However, I have never once gotten them to work. I used Google's Android SDK in 2013, and as a sanity check I tried building one of my old projects today with Debian's tools. It failed.
I installed these packages:
sudo apt install build-essential crossbuild-essential-armhf crossbuild-essential-arm64 android-sdk android-sdk-helper android-sdk-platform-23
Then I navigated into my Android project's folder and ran:
gradle init
That appeared to work fine. Terminal output:
BUILD SUCCESSFUL in 2s2 actionable tasks: 2 executed
Then I tried to actually build the APK. I ran:
./gradlew
Terminal output:
FAILURE: Build failed with an exception.
* What went wrong:Could not determine java version from '11.0.3'.
* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
I would ask on the Gradle forums, but they move super fast over there and their solutions would probably involve Google's SDK and upstream tools, so I would like to hear from somebody here what the problem might be. I'm hoping I don't have to rely on an older JDK or something.
Many thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/android-tools-devel/attachments/20190722/7300833d/attachment.html>


More information about the Android-tools-devel mailing list