点击打开链接Error:Error converting bytecode to dex:Cause:c
(2017-03-06 10:36:53)
转载▼
标签: it |
我今天遇到一个bug,错误是这样的:
Error:Error converting bytecode to dex:Cause:com.android.dex.DexException:Multiple dex files Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
错误:将字节码转换为dex时出错:原因:com.android.dex.DexException:多个dex文件定义了Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.>com.android.build.api.transform.TransformException:
com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:java.lang.UnsupportedOperationException
错误:任务':app:transformClassesWithDexForDebug'的执行失败.>
com.android.build.api.transform.TransformException:
com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:java.lang.UnsupportedOperationException
刚开始以为是v4包重复,删除之后也不行。找了一天一夜,这家伙可把我累坏了。网上都搜遍了,方法试了很多,就是解决不了。后来请教我们单位大神,终于解决了!在build.gradle<<dependcies方法中添加依赖:
compile'com.android.support:support-v4:25.2.0'
之后就OK了。尽管报红线,但是项目还是能够正常运行
Error:Error converting bytecode to dex:Cause:com.android.dex.DexException:Multiple dex files Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
错误:将字节码转换为dex时出错:原因:com.android.dex.DexException:多个dex文件定义了Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.>com.android.build.api.transform.TransformException:
com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:java.lang.UnsupportedOperationException
错误:任务':app:transformClassesWithDexForDebug'的执行失败.>
com.android.build.api.transform.TransformException:
com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:java.lang.UnsupportedOperationException
刚开始以为是v4包重复,删除之后也不行。找了一天一夜,这家伙可把我累坏了。网上都搜遍了,方法试了很多,就是解决不了。后来请教我们单位大神,终于解决了!在build.gradle<<dependcies方法中添加依赖:
compile'com.android.support:support-v4:25.2.0'
之后就OK了。尽管报红线,但是项目还是能够正常运行