Error:The number of method references in a .dex file cannot exceed 64K.
Error:The number of method references in a .dex file cannot exceed 64K.
Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'G:\dev\as\jre\bin\java.exe'' finished with non-zero exit value 2
defaultConfig { // dex突破65535的限制 multiDexEnabled true }
并引入如下包dependencies { // 编译libs目录下的所有jar包 compile fileTree(dir: 'libs', include: ['*.jar']) //使用multidex support library让Android5.0之前的版本也能在一个apk里面包含多个.dex文件,防止一个.dex超过65536个方法数 compile 'com.facebook.fresco:fresc' compile 'com.android.support:multidex:1.0.1' }
发现又会出现这个错误
Error: Execution failed for task ': app: packageAllDebugClassesForMultiDex'. > Java.util.zip.ZipException: duplicate entry: bolts / AggregateException.class
删除这个
ompile files('libs/bolts-tasks-1.4.0.jar')
改成这样
compile('com.facebook.fresco:fresco:0.6.0+') { exclude group: 'com.parse.bolts', module: 'bolts-android' }
引起这个错误
@Override protected void onResume() {
super.onResume();
// umeng MobclickAgent.onResume(this); }
@Override protected void onStart() {
super.onStart(); // umeng
MobclickAgent.onPause(this); }
没有找到相关结果
已邀请:
2 个回复
Wxin
嘘