Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android build error #88

Open
AmirDoreh opened this issue Dec 16, 2021 · 4 comments
Open

Android build error #88

AmirDoreh opened this issue Dec 16, 2021 · 4 comments

Comments

@AmirDoreh
Copy link

i am getting the following error on android when trying to build:

Could not resolve all artifacts for configuration ':wowmaking_react-native-iron-source:releaseRuntimeClasspath'.
   > Could not resolve com.facebook.react:react-native:+.
     Required by:
         project :wowmaking_react-native-iron-source
      > Failed to list versions for com.facebook.react:react-native.
         > Unable to load Maven meta-data from https://dl.bintray.com/ironsource-mobile/android-sdk/com/facebook/react/react-native/maven-metadata.xml.
            > Could not get resource 'https://dl.bintray.com/ironsource-mobile/android-sdk/com/facebook/react/react-native/maven-metadata.xml'.
               > Could not GET 'https://dl.bintray.com/ironsource-mobile/android-sdk/com/facebook/react/react-native/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

it started happening from yesterday

@hdemmer
Copy link

hdemmer commented Jan 15, 2022

I had this as well and it went away once the Gradle / JCenter outage had passed.
The issue is not the use of bintray by this project (for which there's an open PR: #85), but the use of JCenter by the IronSource Android SDK.

@rachellauyui
Copy link

@hdemmer I have this exact error message since Friday as well. But I don't quite understand. Do you mean that wowmaking/react-native-iron-soruce is alright, but the IronSource Android SDK is using JCenter? I read that JCenter is shut down since 2021. I am so totally confused how could IronSource Android being built at all for this whole year, well, until Friday? Do you mean that JCenter just shut down, and could be back on sometime (soon I hope)? What should I do to fix it? Many thanks!

@hdemmer
Copy link

hdemmer commented Sep 14, 2022

Hi @rachellauyui
Hope you were able to fix things in the meantime. I assume that some cached version was on your disk and finally got lost. JCenter will not come back afaik.
You have to add the changes from the open PR since this project is unmaintained. To use it reliably, fork the project, add the change, then point your package.json to the fork.

@lessmore92
Copy link

I solved my problem by using the below line in android/build.gradle.

allprojects {
    repositories {
...
        maven { url 'https://android-sdk.is.com/' }
...
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants