tinycreative / react-native-intercom

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

502 error during the build for android #463

Closed yavorsky closed 2 years ago

yavorsky commented 2 years ago

Recently, I can't build my project. The error is appearing referring to the repo is not available.

https://dl.bintray.com/intercom/intercom-maven/com/facebook/react/react-native/maven-metadata.xml is returning 504 status code.

Error:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':react-native-intercom:generateReleaseRFile'.
> Could not resolve all task dependencies for configuration ':react-native-intercom:releaseRuntimeClasspath'.
   > Could not resolve com.facebook.react:react-native:+.
     Required by:
         project :react-native-intercom
      > Failed to list versions for com.facebook.react:react-native.
         > Unable to load Maven meta-data from https://dl.bintray.com/intercom/intercom-maven/com/facebook/react/react-native/maven-metadata.xml.
            > Could not get resource 'https://dl.bintray.com/intercom/intercom-maven/com/facebook/react/react-native/maven-metadata.xml'.
               > 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

Environment

npm version: 18 io.intercom.android:intercom-sdk-base:7.+

Tried different versions and the result is the same

qburst-subins commented 2 years ago

@yavorsky Facing the same issue since yesterday. Any updates on this? I am using v20.1.0 I think https://github.com/tinycreative/react-native-intercom/blob/master/android/build.gradle this file causes the issue.

rickyalmeidadev commented 2 years ago

Same issue here. It has stopped working suddenly.

dmackinn commented 2 years ago

My team is also unable to generate android builds because of this

lzakrzewski commented 2 years ago

hello @dmackinn, your PR seems to be fixing the issue :pray:

dmackinn commented 2 years ago

@browniefed would you be open to merging this in? I know there is an official Intercom package now but not everyone has migrated to it yet.

browniefed commented 2 years ago

This will be the last PR that I merge for this project.

Please migrate to https://github.com/intercom/intercom-react-native as soon as you can

browniefed commented 2 years ago

react-native-intercom@21.1.1

TamaraMalakhova commented 2 years ago

react-native-intercom@21.1.1 I had problem the same as in this issue but after updating I have another problem:

Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable Duplicate class kotlin.reflect.KClasses found in modules jetified-kotlin-reflect-1.1 (org.jetbrains.kotlin:kotlin-reflect:1.1.1) and jetified-kotlin-stdlib-1.4.32 (org.jetbrains.kotlin:kotlin-stdlib:1.4.32)

qburst-subins commented 2 years ago

Issue resolved when I use "https://github.com/intercom/intercom-react-native". Please try this

TamaraMalakhova commented 2 years ago

https://github.com/intercom/intercom-react-native

This issue or mine?