Unsupported Gradle DSL method found: 'compile()'!

前端 未结 5 1813
南方客
南方客 2020-12-14 23:29

I\'m going through Google\'s documentation on \"Add Google Play Services to Your Project\" in Android Studio: https://developer.android.com/google/play-services/setup.html

5条回答
  •  天命终不由人
    2020-12-15 00:11

    I am not sure why a down vote is given to previously mentioned solutions(Scott Barta & JBaruch). If we go through solution and comments mentioned above, it works completely.

    However, when I faced this problem I used android developer UI to import dependencies as follows:-

    1 Go to View ---> Open Module Settings

    1. Select Dependency tab. Click + to add a dependency and select Library dependency. Choose the downloaded library here.

提交回复
热议问题