AssertionError Resolver for sdk1.8


#1

I get the following error with when trying to run the REPL with Kotlin enabled on a java-only module in an Android project.

4:36:49 PM AssertionError: Resolver for ‘sdk 1.8: java version “1.8.0_112-release” (/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home)’ does not know how to resolve SdkInfo(project=Project 'project, sdk=1.8: java version “1.8.0_112-release” (/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home))

This keeps showing up randomly. I haven’t been able to figure out a pattern yet.

Android studio version is:
Android Studio 2.2.2
Build #AI-145.3360264, built on October 18, 2016
JRE: 1.8.0_112-release-b05 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

What could be causing this and how do resolve it?


#2

Could you please file a YouTrack issue and include the full stacktrace for the assertion error? Thanks!


#3

Yup, will do.