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

♀尐吖头ヾ 提交于 2019-12-01 15:15:47

As the com.google.http-client:google-http-client-parent:1.24.1 has been removed from the maven central repository, it started throwing the error.

In such case, whatever the jars using this reference, can be downgraded to point the older version of google-http-client-parent. That could solve the problem for now.

In your case, com.google.appengine.tools:appengine-gcs-client:0.4.4 is using the reference of com.google.http-client:google-http-client-parent:1.24.1

Try downgrading it to 0.4 that should solve the problem.

Hope this helps!

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.

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.

some one forgot to add 1.24.1 in repository so that while building the project gradle can download that, we should wait till google update the same.

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.

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

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

I had this issue with maven in an app engine project today, one of the third party libraries I am using appengine-gcs-client depends on the library google-http-client and its using version 1.24.1 which obviously had been removed as you can see from other answers.... Here is how I solved it using maven

I excluded the google-http-client from the library that depends on it i.e appengine-gcs-client using the following xml code in my pom.xml

   <dependency>
        <groupId>com.google.appengine.tools</groupId>
        <artifactId>appengine-gcs-client</artifactId>
        <version>0.7</version>
        <exclusions>             
            <exclusion>
                <groupId>com.google.http-client</groupId>
                <artifactId>google-http-client</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

then I give maven the version to use when the google-http-client library is required, this version is just a back dated version from version 1.24.1 which is 1.23.0

        <dependency>
            <groupId>com.google.http-client</groupId>
            <artifactId>google-http-client-jackson2</artifactId>
            <version>1.23.0</version>
        </dependency>

then just run mvn clean install

this solved the problem for me and it should work for you if you have a third party library that depends on the google-http-client-parent:1.24.1 that is missing.

you could look up how to exclude dependencies using gradle from the following link How to exclude dependencies in gradle

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!