android开发

java.lang.ClassCastException或 ja

2020-05-27  本文已影响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
    }
 }
上一篇 下一篇

猜你喜欢

热点阅读