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下添加这行
}
时间: 2024-10-16 19:45:46