报错原因:整个项目中所包含的方法数过多,超过了Android系统定义的总方法数(总数为一个short int 即65536),这时就需要多个dex,即multidex
解决方法:在build.gradle文件中的“minSdkVersion”的版本改为21或者更高。
defaultConfig {
applicationId "com.xxx.xxx"
报错原因:整个项目中所包含的方法数过多,超过了Android系统定义的总方法数(总数为一个short int 即65536),这时就需要多个dex,即multidex
解决方法:在build.gradle文件中的“minSdkVersion”的版本改为21或者更高。
defaultConfig {
applicationId "com.xxx.xxx"
Powered By Z-BlogPHP 1.7.3
Copyright Your WebSite.Some Rights Reserved.