Getting Error “Gradle DSL method not found: 'compile()'” when Syncing Build.Gradle

后端 未结 10 823
后悔当初
后悔当初 2020-11-30 09:42

\"Error\"project

10条回答
  •  旧巷少年郎
    2020-11-30 10:34

    Just delete the method.

    //DELETE THIS LINES:
    android {
    compileSdkVersion 21
    buildToolsVersion '21.1.2'
    }
    

    Try to compile again. It should work now.

    Source : https://medium.com/@marcuspereira/solving-the-gradle-dsl-method-not-found-android-in-android-studio-6e5ab499bd3#.u1lxecq41

提交回复
热议问题