1

In Android Studio 2.2.3 create new project for Android Wear

enter image description here

try to build APK, and got error:

Error:Execution failed for task ':mobile:transformClassesWithDexForDebug'. 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

gradle console:

FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':mobile:transformClassesWithDexForDebug'. 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

in Ubuntu on Android Studo i got the same error

vitalinvent
  • 433
  • 1
  • 5
  • 11
  • 1
    The error encountered seems similar to the one in this [SO thread](http://stackoverflow.com/questions/33717886/errorexecution-failed-for-task-apptransformclasseswithdexfordebug), it might help. – ReyAnthonyRenacia Jan 26 '17 at 10:45
  • add in build.gradle for mobile in android{ defaultConfig{ ... multiDexEnabled true }} solved problem , thanks – vitalinvent Jan 31 '17 at 06:38

0 Answers0