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

前端 未结 6 1393
误落风尘
误落风尘 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:26

    Sometimes you must change the gradle versión settings and the wrapper file if you are using a local distribution.

    1. File > Settings > Build, Execution, Deployment > Build Tools > Gradle
    2. Gradle Home to gradle-2.10
    3. Apply
    4. C:\Users\ ...\project\gradle\wrapper\gradle-wrapper.properties to gradle-2.10-all.zip

    if step 4 is missing, Android studio goes back to gradle-2.8, so i would have to do steps 1-3 every time.

    Well it happens to me, i don't know if it is an isolated case.

提交回复
热议问题