Class not found using the boot class loader; no stack trace available问题的解决

    技术2023-06-14  88

    用Android Studio 4.0升级gradle版本后,在debug版本下重复出现这一问题导致闪退,release版本正常

    排查了很久,百度上没搜到有用的方案,最后在stackoverflow上找到了可以解决这一问题的方法 仅供参考:

    打开multidex:

    defaultConfig { ...... multiDexEnabled true } dependencies { compile 'com.android.support:multidex:1.0.0' }

    重新clean了project,卸载重装,搞定

    Processed: 0.018, SQL: 9