我在我的android项目中收到此错误:
Unable to execute dex: method ID not in [0, 0xffff]: 65536
Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536
Run Code Online (Sandbox Code Playgroud)
从我的所有研究来看,这是由于我的android项目中有太多的方法 - 限制是64k.但是我运行脚本来计算当前项目中有多少,并且它提出了56k方法.这是我正在运行的脚本.
我项目的唯一补充是我已经将Parse从1.4更新到1.7.
在更新解析后构建和编译项目,但是当我尝试添加任何新代码时,会出现此错误.
我第一次遇到这个错误时,我正在使用Android Studio 0.8.9.我已经恢复到Android Studio 0.8.6并且它仍在发生.