jjzjj

DexIndexOverflowException

全部标签

java - 谷歌地图 API 出现 DexIndexOverflowException

我想制作一个使用谷歌地图API的应用程序,我从一个打开谷歌地图Activity的简单应用程序开始。(我从SDK管理器下载googleplay服务)。我认为这是一个非常基本的程序,但是当我尝试运行我的应用程序时出现错误。这是我程序的代码,也是AndroidStudio产生的错误。错误:Error:Executionfailedfortask':app:transformClassesWithDexForDebug'.>com.android.build.api.transform.TransformException:com.android.ide.common.process.Proc

android - com.android.dex.DexIndexOverflowException : method ID not in [0, 0xffff]:android studio 中的 65536

我有一个安卓项目。当我将它导入eclipse时。它工作正常。但是当我将它导入到Androidstudio时,它给出了:-com.android.dex.DexIndexOverflowException:方法ID不在[0,0xffff]:65536构建时出错。一个项目甚至有可能在eclipse和AndroidStudio中表现不同。在这两种情况下(是/否),我该如何解决我已经检查了我的build.gradle文件中的依赖项。所有依赖项都与我在eclipse中使用的相同。 最佳答案 对于ANDROIDSTUDIO...启用即时运行在F

android - 意外的顶级异常 : com. android.dex.DexIndexOverflowException 合并依赖项

在我的项目中,当我想在我的应用程序中将googleplay依赖项添加到uesgooglemap时出现问题。问题是当我想运行项目时出现这些错误:UNEXPECTEDTOP-LEVELEXCEPTION:com.android.dex.DexIndexOverflowException:methodIDnotin[0,0xffff]:65536atcom.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:502)atcom.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMe

android - 仅在运行测试时出现 DexIndexOverflowException

我可以在我的调试和发布变体中成功构建和运行我的Android应用程序,没有任何问题。然而,当我尝试运行我的新单元测试(我以前从未进行过)时,我遇到了可怕的DexIndexOverflowException。我怀疑ProGuard没有在我的单元测试中运行,但它在我的正常调试和发布buildTypes中运行。我需要做什么才能在我的单元测试运行配置中运行ProGuard?我搜索了Gradle文档、ProGuard文档和AndroidStudio文档来解决这个问题,但我一无所获。 最佳答案 com.android.dex.DexIndexO

java - Android Studio DexIndexOverflowException : method ID not in

我使用AndroidStudio开发一个应用程序,我遇到了这个我不知道如何解决的错误。com.android.dex.DexIndexOverflowException:methodIDnotin[0,0xffff]:app:lintVitalRelease:app:prePackageMarkerForRelease:app:transformClassesWithDexForReleaseFAILEDError:Executionfailedfortask':app:transformClassesWithDexForRelease'.>com.android.build.api.

android - 更新到最新的 appcompat 和支持库后出现 DexIndexOverflowException 问题

我正在通过gradle使用以下设置:compileSdkVersion21ANDROID_BUILD_MIN_SDK_VERSION=14ANDROID_BUILD_TARGET_SDK_VERSION=21ANDROID_BUILD_TOOLS_VERSION=21.0.2ANDROID_BUILD_SDK_VERSION=21我的gradle文件中还有以下设置:compile'com.android.support:support-annotations:21.0.0'compile'com.android.support:appcompat-v7:21.0.0'compile'c