标签:mon group jdk1.8 efault color 添加 api failed nal
1.使用环信UI包遇到的问题:
引入UI包后出现这个错误~
Error:Execution failed for task ‘:transformClassesWithJarMergingForDebug‘. > com.Android.build.api.transform.TransformException: Java.util.zip.ZipException: duplicate entry: android/support/annotation/ColorRes.class
解决方法:
gradle android中添加:
configurations { all*.exclude group: ‘com.android.support‘, module: ‘support-v4‘ }
2.这个错误是在网上找到的
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 ‘D:\Program Files\Java\jdk1.8.0_92\bin\java.exe‘‘ finished with non-zero exit value 2
解决方法:
gradle添加:
defaultConfig { multiDexEnabled true //defaultConfig下添加这行
}
标签:mon group jdk1.8 efault color 添加 api failed nal
原文地址:http://www.cnblogs.com/yaxiaoke/p/6073305.html