tinycreative / react-native-intercom

React Native wrapper for Intercom.io
MIT License
407 stars 280 forks source link

Android build failing - Maven 502 error #456

Closed walterholohan closed 2 years ago

walterholohan commented 2 years ago

Hi,

My RN project is failing to build as its getting a 502 error when trying to pull this package down from maven. Error message below:

* What went wrong:
2021-08-30T09:24:08.5302075Z Execution failed for task ':app:lintVitalStagingRelease'.
2021-08-30T09:24:08.5306268Z > Could not resolve all artifacts for configuration ':react-native-intercom:debugUnitTestRuntimeClasspath'.
2021-08-30T09:24:08.5309608Z    > Could not resolve com.facebook.react:react-native:+.
2021-08-30T09:24:08.5311722Z      Required by:
2021-08-30T09:24:08.5313849Z          project :react-native-intercom
2021-08-30T09:24:08.5316565Z       > Failed to list versions for com.facebook.react:react-native.
2021-08-30T09:24:08.5320920Z          > Unable to load Maven meta-data from https://dl.bintray.com/intercom/intercom-maven/com/facebook/react/react-native/maven-metadata.xml.
2021-08-30T09:24:08.5325722Z             > Could not get resource 'https://dl.bintray.com/intercom/intercom-maven/com/facebook/react/react-native/maven-metadata.xml'.
2021-08-30T09:24:08.5330968Z                > Could not GET 'https://dl.bintray.com/intercom/intercom-maven/com/facebook/react/react-native/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
walterholohan commented 2 years ago

I checked the status page for bintray and everything seems to be ok

https://status.bintray.com/

anehustorov commented 2 years ago

@walterholohan How did you solve this issue?

davidfant commented 2 years ago

I'm running into the same problems!

ianjsikes commented 2 years ago

Also looking for a fix for this. Builds have been failing all day 😞 If gradle is set up correctly, shouldn't it resolve com.facebook.react:react-native:+ to the local install in your node_modules? As a test I tried adding

maven {
    url("$rootDir/../node_modules/react-native/android")
}

to react-native-intercom/android/build.gradle but it doesn't solve the problem.

anehustorov commented 2 years ago

Solved this issue by migrating to the official library. Migration took about 30 minutes