Android Plugin for Gradle 3.0.0 : Could not find com.google.http-client:google-http-client-parent:1.24.1

后端 未结 9 699
情歌与酒
情歌与酒 2021-01-17 11:43

I had to migrate my android project to new version of Android Studio and Android pluging for Gradle.

I followed all instructions at https://developer.android.com/stu

相关标签:
9条回答
  • 2021-01-17 12:01

    In my case the issue was with this line in the backend gradle file

    compile 'com.google.appengine.tools:appengine-gcs-client:0.7'

    After commenting out this and commenting the code linked with GCS my Build worked fine. It's referring to the com.google.http-client:google-http-client-parent:1.24.1

    0 讨论(0)
  • 2021-01-17 12:02

    maintainer for com.google.http-client:google-http-client-parent here. During a release yesterday, a pom.xml was somehow released. All other artifacts seem fine AFAICT minus this one pom. Sincere apologies for the hassle.

    We have pushed a fix to this problem (manually release the missing pom.xml). Please try now and let me know if 1.24.1 does not work. We generally track issues at https://github.com/google/google-http-java-client/issues.

    0 讨论(0)
  • 2021-01-17 12:03

    Try using a different library for eg google-api-client-android:1.22.0 this should work

    0 讨论(0)
  • 2021-01-17 12:13

    Someone messed up.

    I checked here: https://repo.maven.apache.org/maven2/com/google/http-client/google-http-client-parent/

    The 1.24.1 version is missing.

    0 讨论(0)
  • 2021-01-17 12:20

    I just had a similar problem, to solve it I googled and found out people suggesting to add 'google()' Gradle could not find dependency com.google.android.gms:play-services, but probably you have already done it since you followed the instructions.

    In my case it wasnt enough, I noticed that i was using something that required a higher SdKVersion, so i just had to increase it to the right minSdkVersion.

    0 讨论(0)
  • 2021-01-17 12:22

    Solved for me!

    if you have this line in your gradle

          compile 'com.google.api-client:google-api-client-android:+'
    

    change it to

          compile 'com.google.api-client:google-api-client-android:1.22.0'
    

    or any other valid version in place of 1.22.0

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