The Gradle 3.0.0 Android Plugin is reporting that it cannot locate the requested dependency com.google.http-client:google-http-client-parent:1.24.1

I recently had to upgrade my android project to the latest version of Android Studio and the Android Gradle plugin.

Following the guidelines provided at https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration?utm_source=android-studio#new_configurations, I encountered a build error related to google-http-client-parent:1.24.1 that was not present in repositories Maven or Jcenter.

In my app, I am only using com.google.http-client:google-http-client-android:1.23.0 with no libraries of version 1.24.1. Despite extensive research, the origin of this error remains unclear.

The log detailing the issue is as follows:

[insert log here]

My app gradle configuration:

[insert app gradle configuration here]

Answer №1

Due to the removal of

com.google.http-client:google-http-client-parent:1.24.1
from the Maven Central repository, an error is now being encountered.

In this situation, any dependencies relying on this specific version can be adjusted to use an earlier version of google-http-client-parent. This temporary fix should resolve the issue.

For instance,

com.google.appengine.tools:appengine-gcs-client:0.4.4
currently depends on
com.google.http-client:google-http-client-parent:1.24.1

Consider downgrading it to version 0.4 to address the problem.

We hope this solution proves helpful!

Answer №2

There has been an error.

I investigated here:

The 1.24.1 edition is not present.

Answer №3

As the maintainer of

com.google.http-client:google-http-client-parent
, I recently encountered an issue during a release where a pom.xml was inadvertently included. Despite this hiccup, all other artifacts appear to be in good shape aside from this specific pom file. My sincere apologies for any inconvenience this may have caused.

We have since addressed the problem by manually releasing the missing pom.xml. Please give it another try and let me know if version 1.24.1 doesn't function as expected. For ongoing updates on any issues, we monitor our repository at https://github.com/google/google-http-java-client/issues.

Answer №4

It appears that a key version, 1.24.1, was inadvertently left out of the repository needed for our project's build process. We must now patiently await Google's update to rectify this issue so that Gradle can successfully download the missing component.

Answer №5

Dealing with a similar issue recently, I decided to search for solutions online and came across recommendations to include 'google()' as mentioned in this Stack Overflow thread. However, it seems like you may have already taken this step given that you followed the provided instructions.

Unfortunately, the initial fix did not completely resolve my problem. Upon further investigation, I discovered that the issue stemmed from using a feature that required a higher SdKVersion. Consequently, adjusting the minSdkVersion to align with the specific requirement resolved the issue for me.

Answer №6

Resolved the issue!

If you happen to see this section in your gradle file

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

simply update it to

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

or any other valid version number instead of 1.22.0

Answer №7

The issue I encountered was related to a particular line in the Gradle file for the backend

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

By commenting out this line and addressing the code associated with GCS, my build process ran smoothly. The problematic dependency is com.google.http-client:google-http-client-parent:1.24.1

Answer №8

Encountered an issue with Maven while working on an app engine project today. One of the third-party libraries I was using, appengine-gcs-client, relied on the library google-http-client with version 1.24.1, which had been removed. Here's how I resolved it using Maven:

I excluded google-http-client from the dependency appengine-gcs-client by adding the following XML code to 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>

Next, I specified the version for Maven to use when requiring the google-http-client library, opting for a backdated version like 1.23.0:

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

Finally, I ran mvn clean install to successfully resolve the issue caused by the missing google-http-client-parent:1.24.1 in third-party libraries.

If you encounter a similar situation, you can explore excluding dependencies in Gradle by referring to this link: How to exclude dependencies in Gradle

Answer №9

Consider exploring alternate options such as utilizing the google-api-client-android library version 1.22.0 for a potential solution.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

App for Android devices enabling text and voice communication within the same local area network

I'm interested in creating an Android app that includes a feature for people on the same LAN to text and make voice calls to communicate. If you know of any tutorials or resources related to this topic, I would greatly appreciate your suggestions. ...

What is the best way to emphasize the selected color?

I am having trouble with setting the focus and active properties for an input element. Even after selecting a color, the highlight does not appear. However, the hover property is working fine. Here is the code I have used to implement the highlight proper ...

Exploring the capabilities of Volley library in conjunction with AsyncTask

In my Android project, I'm utilizing the Volley library. My goal is to design a login screen where user details are sent to the server via a JSON request for verification. Subsequently, another JSON request is made to fetch additional user information ...

How can we incorporate login/logout functionality into either PHP or Java servlets?

For my college project, I am planning to develop a website that allows users to login, logout, upload, and store files. I have expertise in both PHP and Java. Can you suggest the most efficient way to incorporate this functionality into the website using e ...

Placing a div directly beneath an anchor tag

I'm trying to create a dropdown menu that appears directly under the URL that triggers it. I have successfully made the menu appear, but I am struggling with positioning it correctly. Here is my HTML code: <div id="container"> Content here ...

approaching the messaging system on Android

Seeking guidance on how to approach a project rather than finding an immediate solution to a programming problem. I am tasked with developing an Android app for a cleaning firm that requires a system allowing customers to report incidents on the firm&apos ...

What is preventing me from being able to call this method from a different class?

In my code, I have the main class that extends MapActivity in the following way: public class main extends MapActivity { private MapView mapView; ......//something public MapView getmapView() { return mapView; } ........//so ...

What is the best way to remove margin on the first child element in a right-to-left (

Seeking advice on how to remove the margin from the first child of four progress bars arranged vertically in a right-to-left (rtl) form. I attempted using the "first-child" property without success. Any suggestions? .progress-bar-vertical:first-child { ...

When searching for a wifi network, two identical networks appeared on the list

I am currently attempting to establish a wifi connection with a device final WifiNetworkSpecifier wifiNetworkSpecifier = new WifiNetworkSpecifier.Builder() .setSsidPattern(new PatternMatcher(networkSSIDPattern, PatternMatcher.PATTERN_PREFIX ...

Incorporating data into an ExpandableListView from an XML source on Android

In my Android app, there is an Activity with an ExpandableListView that needs to be populated dynamically using XML data queried from a server upon launch. Users should be able to edit this XML data within the ExpandableListView and have the changes refle ...

Adding Google Plugin into Eclipse within the Eclipse Android Developer Tools (ADT) Bundle

I recently downloaded the Eclipse ADT bundle from http://developer.android.com/sdk/index.html. My next step was to add the Google Plugin for Eclipse by going to Help -> Install new software... and entering the following: gpe - http://dl.google.com/ecli ...

Invoke the Thread.yield() function or its equivalent in the context of C programming using the NDK

In my Android 2.3.3 app with SDK 2.2, I have implemented an AsyncTask. This task utilizes a C-library through the NDK. Rather than using a while(condition) loop in Java, I decided to use a loop in C to avoid costly JNI calls during each iteration. If I h ...

Concealing essential data in mySql dump file for privacy safeguarding

I need to protect the privacy of certain key fields in some tables within my MySql database dump file before sharing it with other developers. I am exploring ways to obfuscate this data, such as modifying the dump SQL file before restoring it to the data ...

What is the best way to achieve consistent width in a material-ui card component?

How can I ensure that all these cards have the same width? https://i.stack.imgur.com/Ns3zw.png I'm experiencing an issue with achieving uniform card widths when using flexbox in material-ui. How can I resolve this? Is it necessary to utilize Grid fo ...

Comparing between bootstrap-flex, bootstrap-grid, and bootstrap-reboot: similarities and distinctions

The latest iteration of Bootstrap (current version as of the time this question was posed is <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0b6964647f787f796a7a45f757b757b766a776f762b606">[email protected]</a>) in ...

What is the best way to hide a background bottom line using bootstrap-4?

After creating my header and using an SVG to divide the section, I noticed a line appearing below the SVG. To try and cover it up, I added an empty white background line using :: after in CSS with the content empty, but the issue persisted. You can see th ...

Discovering various lists of objects in Android using Retrofit

My aim is to retrieve various types of List data using Retrofit. I have created a List and added data to it. Can someone guide me on how to fetch Different Types of Model Data? When I attempted to add Object List to my Custom model list, I encountered thi ...

Fetching data from MongoDB, loading over 3000 entries and implementing pagination

I'm facing a challenge where I need to display more than 3000 results in an HTML table by fetching MachineID, Username, and Data from my MongoDB. However, I am encountering difficulties when trying to render this data using datatables. The MachineID ...

Can one retrieve the CSS/XPath from a Capybara Element?

Is it possible to extract CSS/XPath from a Capybara Element? I have attempted to use #path but it doesn't appear to be effective. Here is the link I tried: The test is being executed on Selenium Webdriver. ...

The CSS3 rotation transform will rotate by an angle of n degrees

I'm currently working on a cube-like element made up of 4 divs that I am rotating using CSS3 transforms (limited to -webkit for a Chrome extension). But there's an issue, if you visit http://jsfiddle.net/CxYTg/ and click through "one", "two", "t ...