Failed to resolve: com.google.android.gms:play-services in IntelliJ Idea with gradle

前端 未结 13 1976
一向
一向 2020-12-02 11:09

I\'m trying to add google play services to my libGDX project in IntelliJ Idea. I\'ve followed the setup guide here: https://developers.google.com/android/guides/setup

<
13条回答
  •  执笔经年
    2020-12-02 11:39

    A more up to date answer:

    allprojects {
        repositories {
            google() // add this
        }
    }
    

    And don't forget to update gradle to 4.1+ (in gradle-wrapper.properties):

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
    

    source: https://developer.android.com/studio/build/dependencies.html#google-maven

提交回复
热议问题