【发布时间】:2017-07-19 17:08:40
【问题描述】:
我对如何在 android studio 中使用谷歌地图很感兴趣。我按照教程进行了三次检查,确认所有内容都输入正确,但是当我尝试构建 apk 时,出现此错误:
错误:任务':app:transformClassesWithDexForDebug'的执行失败。> com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:com .android.dex.DexIndexOverflowException:方法 ID 不在 [0, 0xffff] 中:65536
【问题讨论】:
-
表示编译后的代码里面的方法太多了。尝试使用 DexIndexOverflowException 进行互联网搜索...同时使用 DexIndexOverflowException 和 google play 服务进行互联网搜索会返回更有趣的结果...