Gradle error in Android Studio 0.4.3

后端 未结 1 1573
故里飘歌
故里飘歌 2021-01-24 18:59

I found references to this with an older version, but not the most recent. I updated Android Studio to 0.4.3 and created a new project. The build fails immediately with the belo

1条回答
  •  走了就别回头了
    2021-01-24 19:49

    You need to make sure you're using the correct version of the Android Gradle plugin. For Android Studio 0.4.3 it's the 0.8.X series. Specify it in build.gradle as:

    dependencies {
        classpath 'com.android.tools.build:gradle:0.8.+'
    }
    

    This may be in the top-level build.gradle or the one in your module; the location where we put this has changed in projects newly created in later versions of Android Studio.

    0 讨论(0)
提交回复
热议问题