Android studio - Build script error, unsupported Gradle DSL method found: 'android()'!

前端 未结 2 418
囚心锁ツ
囚心锁ツ 2020-12-19 07:57

I\'m getting the following error in Android Studio 0.4.2 when I\'m trying to Sync project with gradle.

Gradle \'GooglePlayServicesTest\' project refresh fail         


        
相关标签:
2条回答
  • 2020-12-19 08:33

    Add top of your project build.gradle file:

    apply plugin: 'com.android.application'
    
    0 讨论(0)
  • 2020-12-19 08:42

    android method in project gradle file is not needed.Try to remove it.

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