Android Studio 报错65535

版权声明:com.anleiya.www https://blog.csdn.net/weixin_42996187/article/details/81778921

在Android的模块gradle文件的defaultConfig默认配置里面增加:

multiDexEnabled true

同时在dependencies里面增加:

implementation 'com.android.support:multidex:1.0.3'

另外需要把AndroidMainfest.xml里面添加自定义的App继承自MultiDexApplication、

创建MyApp类继承MultiDexApplication  同时添加

@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);

    MultiDex.install(this);
}

猜你喜欢

转载自blog.csdn.net/weixin_42996187/article/details/81778921