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

Fluff Rabbit fluffrabbit at aol.com
Tue Jul 23 12:18:17 BST 2019


I didn't RTFM thoroughly enough. Apprently the Gradle wrapper isn't directly supported and instead you export ANDROID_HOME and call gradle build directly. Still getting errors though. It "Couldn't resolve system dependency", and I think said dependency is MavenResolverHook based on the stack trace. But that doesn't sound logical. This bs is the reason I avoid Java.

On July 22, 2019 4:51:12 PM MDT, fluffrabbit--- via Android-tools-devel <android-tools-devel at alioth-lists.debian.net> wrote:
>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/20190723/749aea7a/attachment.html>


More information about the Android-tools-devel mailing list