[英]Android Studio Error:Error converting bytecode to dex: Cause: java.lang.RuntimeException: Exception parsing classes
Error:Error converting bytecode to dex: Cause: java.lang.RuntimeException: Exception parsing classes 错误:将字节码转换为dex时出错:原因:java.lang.RuntimeException:异常解析类
I got this error after merging my files. 合并文件后出现此错误。 I spend around one day to resolve this.
我花了大约一天的时间来解决这个问题。 Searched other stackoverflow answers, nothing worked.
搜索其他stackoverflow答案,没有任何效果。
after spending about a day, i found the answer. 花了大约一天后,我找到了答案。 There was package capitalization mismatch.
包装大小写不匹配。 my package was com.example.utils, but in some android file it was imported as com.example.Utils
我的包是com.example.utils,但在某些android文件中,它是作为com.example.Utils导入的
I hope this will help others to save a day or two. 我希望这可以帮助其他人节省一两天。 Gradle should be more smart to point right problem than giving some general Exception parsing classes
Gradle应该比提供一些一般的Exception解析类更聪明地指出正确的问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.