minimal-android-project icon indicating copy to clipboard operation
minimal-android-project copied to clipboard

Project is broken

Open fabiensanglard opened this issue 10 months ago • 1 comments

Just tried after installing Gradle 2.1 but I get an error trying to build:

% ~/Downloads/gradle-2.2.1/bin/gradle installDebug

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '19.0.2'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

fabiensanglard avatar Apr 13 '24 23:04 fabiensanglard

Gradle 2.1 doesn't support Java 19. Try using the latest version of Gradle instead.

docbrown avatar Apr 19 '24 19:04 docbrown

I've now updated the project to the latest Android Gradle plugin (v8.5.2). This requires Gradle 8.7 or higher, according to the plugin docs.

I've successfully built and installed the project with Gradle 8.10 on OpenJDK 17.0.12 and OpenJDK 22.0.2.

I hope it works for you as well. Thanks!

czak avatar Aug 30 '24 16:08 czak