Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Error while building react native app: Could not resolve all artefacts for configuration react-native-get-real-path #24

Description

@hackothaurus

Environment

React native version: 0.62.2,
react-native-get-real-path: "git+https://github.com/Wraptime/react-native-get-real-path.git",
Gradle version 3.3.0,
Dependency in react-native-get-real-path's build.gradle file: Gradle version 2.2.+

Description

I try to run the app with react-native run-android or if I run ./gradlew clean in the android folder, I get the error:

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':react-native-get-real-path'.

Could not resolve all artifacts for configuration ':react-native-get-real-path:classpath'.
Could not resolve com.android.tools.build:gradle:2.2.+.
Required by:
project :react-native-get-real-path
> Failed to list versions for com.android.tools.build:gradle.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml.
> Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)

I didn't change anything in the project and it was working fine a while ago.
I've deleted and reinstalled node modules, cleared caches, ran it on another android environment, but I keep getting this error.
I also added google() as the repositories in react-native-get-real-path's build.gradle file, all to no avail.

Reproducible Demo

Building the project with the mentioned RN, Gradle and react-native-get-real-path versions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions