Requested enabled DevSupportManager, but DevSupportManagerImpl class was not found or could not be c
Posted TaoLee-
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Requested enabled DevSupportManager, but DevSupportManagerImpl class was not found or could not be c相关的知识,希望对你有一定的参考价值。
上线项目遇到的bug,在 安卓版本4-5之间,启动崩溃。。高版本没问题。
Caused by: java.lang.RuntimeException: Requested enabled DevSupportManager, but DevSupportManagerImpl class was not found or could not be created
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.NoClassDefFoundError: okhttp3.OkHttpClient$Builder
上面三个是一起报错的。把注意力放在第一个上面了。。没搜到太多有用的信息。
第三个到是可以搜到一些解决办法,
1 build.gradle
compile 'com.android.support:multidex:1.0.1'
2 build.gradle
android
defaultConfig
multiDexEnabled true
3MainApplication
@Override
protected void attachBaseContext(Context base)
super.attachBaseContext(base);
MultiDex.install(this);
4
<application
android:name=".MainApplication"
android:allowBackup="true">
</application>
解决了。
以上是关于Requested enabled DevSupportManager, but DevSupportManagerImpl class was not found or could not be c的主要内容,如果未能解决你的问题,请参考以下文章
configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the correspo
Play Store 没有在 Play Store 上发布我的应用,具有 BIND_DEVICE_ADMIN、DEVICE_ADMIN_DISABLE_REQUESTED 和 DEVICE_ADMIN
AngularJS $resource 不发送 X-Requested-With