Android studio 2.0 gradle transformClassesWithDexForDebug fails when using button “run”

后端 未结 14 2004
被撕碎了的回忆
被撕碎了的回忆 2020-12-25 11:21

I have a problem after migration from android studio 1.5 to 2.0

In one of my project (only one) i can\'t use android studio run button,

because then, build

14条回答
  •  北海茫月
    2020-12-25 12:09

    All it took to fix this issue for me was to add the following lines to the build.gradle file for the mobile app:

    ...

    android {

        ...
    
        // Enabling multidex support.
        multiDexEnabled true
    }
    
    dexOptions {
        javaMaxHeapSize "4g"
    }
    
    ...
    

    }

    dependencies {

    ...
    
    compile 'com.android.support:multidex:1.0.0'
    
    ...
    

    }

提交回复
热议问题