Skip to content

Instantly share code, notes, and snippets.

@dokinkon
Created November 13, 2018 06:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dokinkon/3ad1386eb7aa20f5ba180aa517829562 to your computer and use it in GitHub Desktop.
Save dokinkon/3ad1386eb7aa20f5ba180aa517829562 to your computer and use it in GitHub Desktop.
* Kotlin: Calls to static methods in Java interfaces are prohibited in JVM target 1.6. Recompile with '-jvm-target 1.8'
android {
compileSdkVersion 28
...
/**
* 解決:
* Kotlin: Calls to static methods in Java interfaces are prohibited in JVM target 1.6. Recompile with '-jvm-target 1.8'
* 參考:
* https://stackoverflow.com/a/52561908/307442
*/
kotlinOptions{
jvmTarget = '1.8'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment