Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to refresh gradle project in IntelliJ IDEA 2016.1: Unknown method ScalaCompileOptions.getForce()

I have a Gradle-based project primarily with Java code and a small subproject with Scala (a Gatling-based performance test).

I recently upgraded Gradle wrapper to v2.12, which is currently the latest version. And today I just updated IntelliJ Idea from v15 to v2016.1.

When I try to refresh the project from the Gradle files in Idea, I get this error.

Error:Cause: org.gradle.api.tasks.scala.ScalaCompileOptions.getForce()Ljava/lang/String;

I noticed when searching on Google, that the method getForce() (returning a String) apparently has been replaced by isForce() (returning a boolean).

If i downgrade Gradle wrapper to v2.11 the problem disappears. Is there anything else I can do to fix the problem?

like image 525
Ulrik Avatar asked Mar 22 '16 12:03

Ulrik


People also ask

How resync Gradle IntelliJ?

We can configure the settings for how IntelliJ IDEA syncs with Gradle by pressing the settings icon in the Gradle tool window, and selecting Auto-Reload Settings. We can set IntelliJ IDEA to automatically reload the project after "Any changes" in the build script files, so changes are automatically reloaded.


1 Answers

I guess there is nothing except downgrade you can do. Just report your problem on Jetbrains issue tracker

like image 89
Igor Konoplyanko Avatar answered Oct 12 '22 15:10

Igor Konoplyanko