New project on IntelliJ idea Kotlin Native - Unable to find method

Answered

Hi,

I've installed Idea from scratch, and started a new Kotlin Native project.
As soon as the project is created, I get this build issue:


Unable to find method 'sun.misc.Unsafe.defineClass(Ljava/lang/String;[BIILjava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class;'.
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)</li><li>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)</li><li>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.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

 

Trying to "Re-download dependencies and sync project" doesn't help at all.
Trying to "Stop Gradle build processes (requires restart)" doesn't do fix the issue either.

I'm running Idea version 2018.3.1, build #IC-183.4588.27 from November 28th. This installation is set to be in "Beta releases or Public previews" channel.

My computer is a Mac 10.13.6, with Java 11.0.1, and Gradle 4.10.2

FWIW, I also have Android studio setup on this machine, and I don't seem to have any issues.

 

Any ideas on what this issue may be, and how to fix it?
Thanks.

Please sign in to leave a comment.