美文网首页android开发
java.lang.ClassCastException或 ja

java.lang.ClassCastException或 ja

作者: 花艺荣 | 来源:发表于2020-05-27 13:32 被阅读0次

在引入一些库或升级一些库后,运行应用遇到如下问题:
Caused by: java.lang.ClassCastException: Bootstrap method returned null

Caused by: java.lang.BootstrapMethodError: Exception from call site #4 bootstrap method

一些时候,你需做如下改动以解决问题:

updating your build.gradle.

android { 
   ····
   compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
 }

相关文章

网友评论

    本文标题:java.lang.ClassCastException或 ja

    本文链接:https://www.haomeiwen.com/subject/hldwahtx.html