通过导入外部库,我已经超过了65k方法的限制。我启用了ProGuard,但仍然收到相同的错误。
[2015-01-12 15:13:39 - Dex Loader] Unable to execute dex: method ID not in [0, 0xffff]: 65536
[2015-01-12 15:13:39 - MyFirstGame] Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536
在阅读了谷歌官方文档后,似乎我应该配置一个MultiD
我正在使用Eclipse,我有一个使用android版本21 (5.0)的新项目。我想用Art而不是Dalvik编译它。我要做什么才能做到这一点?
编辑:这个问题的原因是我有这个问题:
[2014-11-12 10:30:49 - Dex Loader] Unable to execute dex: method ID not in [0, 0xffff]: 65536
[2014-11-12 10:30:49 - MAMUT] Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xf
我正在开发一个应用程序,它从外部apk文件中自动加载类(外部apk文件存储在应用程序的内部存储中)。外部apk文件具有使用com.google.gson的类。
应用程序的源代码。
// Internal storage where the DexClassLoader writes the optimized dex file to.
final File optimizedDexOutputPath = mContext.getDir("optimize_offload", Context.MODE_PRIVATE);
// Initialize the c