【发布时间】:2016-03-09 04:22:27
【问题描述】:
我在我的项目中只为 GCM 使用 google play 服务。更新我的 google play 服务库时出现以下错误
[2015-12-04 14:50:10 - MyGame] Dx
trouble writing output: already prepared
[2015-12-04 14:50:14 - Dex Loader] Unable to execute dex: method ID not in [0, 0xffff]: 65536
[2015-12-04 14:50:14 - MyGame] Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536
在谷歌搜索时,我发现抛出此错误是因为我的 dex 文件超出了限制。我不想拆分我的 dex 文件。谁能告诉我如何删除未使用的功能。我没有看到太多关于使用 eclipse 执行此操作的建议。
我看到有人建议使用 proguard,但不知何故这对我不起作用。可能是因为我不太熟悉使用 proguard。
请帮忙。
【问题讨论】:
标签: android eclipse google-play-services