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

Viewed 3763

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?

3 Answers
Related