Android Studio DexIndexOverflowException:方法 ID 不在

新手上路,请多包涵

我使用 Android Studio 开发一个应用程序,我遇到了这个错误,我不知道如何解决。

com.android.dex.DexIndexOverflowException: 方法 ID 不在 [0, 0xffff] 中

:app:lintVitalRelease
:app:prePackageMarkerForRelease
:app:transformClassesWithDexForRelease FAILED
Error:Execution failed for task ':app:transformClassesWithDexForRelease'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
Information:BUILD FAILED
Information:Total time: 34.783 secs
Information:1 error

原文由 Hassan Ouhadou 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 664
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题