question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to find method 'org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V'.

See original GitHub issue

Issue details

Unable to find method ‘org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V’.

Reproduction steps/code

Upgrade android Gradle plugin to 3.4.0 version and Gradle 5.1.1

Version of LibGDX and/or relevant dependencies

GdxVersion = 1.9.9 Android gradle plugin = 3.4.0 KotlinVersion = 1.3.31 GradleVersion = 5.1.1

Stacktrace

Unable to find method 'org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V'.
Possible causes for this unexpected error include:
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)

The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)

Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

Please select the affected platforms

  • Android
  • iOS (robovm)
  • iOS (MOE)
  • HTML/GWT
  • Windows
  • Linux
  • MacOS

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

134reactions
tlshenmcommented, May 27, 2019

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

24reactions
ozanurkncommented, Sep 26, 2019

Update the classpath ‘com.android.tools.build:gradle:3.1.0’ in your project gradle.

Read more comments on GitHub >

github_iconTop Results From Across the Web

3 - Stack Overflow
Unable to find method 'org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V'. Possible causes for this unexpected ...
Read more >
5.1.1 setBootClasspath issue - Help/Discuss - Gradle Forums
1 from 4.7 I noticed that issue: Unable to find method 'org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V'.
Read more >
dronekit/dronekit-android - Gitter
While running the app i'm getting this error:- Unable to find method 'org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V'.
Read more >
亲问下身份证识别,有没有可以用的demo? - 百度AI开放平台
ERROR: Unable to find method 'org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V'. Possible causes for this unexpected error ...
Read more >
Build Gradle fails after i switch from Internal to ... - Unity Forum
org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String ;) V * Try: Run with --stacktrace option to get the stack ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found