Could not determine java version from ‘9.0.1’

print
https://stackoverflow.com/a/46977035

down vote
accepted
Currently html module using deprecated jetty plugin which is removed in Gradle 4.1 version.

Android Studio 3.0 using Gradle-4.1 and android-gradle-plugin:3.0.0

Gradle 4.1 is not supported yet in LibGDX, there is an open issue for the same.

If you still want to use Android Studio 3.0

Downgrade Gradle to 3.3 from 4.1

Find gradle folder inside your project, Open gradle-wrapper.properties and change distributionUrl for 3.3

distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
Downgrade Android-gradle-plugin to 2.3.3 from 3.0.0

Open root build.gradle file and find artifact and change version

classpath ‘com.android.tools.build:gradle:2.3.3’
Comment/delete google() from repo list

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.