Error: Gradle project sync failed.
Error: Gradle project sync failed. Please fix your project and try again.
android studio
Goto File -> Invalidate caches / Restart
https://stackoverflow.com/a/38928660
Unable to find method 'org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V'.
SampleProject/gradle/wrapper/gradle-wrapper.properties
android studio
Goto File -> Invalidate caches / Restart
https://stackoverflow.com/a/38928660
Unable to find method 'org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V'.
SampleProject/gradle/wrapper/gradle-wrapper.properties
distributionUrl=https://services.gradle.org/distributions/gradle-5.1.1-all.zip
▼ change
distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip
▼ change
distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip
https://github.com/libgdx/libgdx/issues/5617#issuecomment-496091637