Android Studio doesn't work fine with gradle 2.10 and gradle plugin 2.0.0-alpha5

前端 未结 6 1370
误落风尘
误落风尘 2020-12-31 06:08

I use com.android.tools.build:gradle:2.0.0-alpha3 and gradle 2.8 before I update to Android Studio 2.0 preview 5. It works fine.

After I update to 2.0 preview 5,it t

6条回答
  •  离开以前
    2020-12-31 06:48

    There's a quick fix listed on google plus by the android dev team in the comments (post).

    Set dexInProcess equal to false in your build.gradle:

    dexOptions {  
        javaMaxHeapSize "4g"  
        dexInProcess false  //the magic line
    }
    

提交回复
热议问题