alwx / react-native-http-bridge

HTTP server for React Native
118 stars 78 forks source link

Unable to build Android project #17

Closed dredev11 closed 4 years ago

dredev11 commented 5 years ago

Related to https://github.com/facebook/react-native/issues/25294 Also relevant: https://github.com/facebook/react-native/issues/25293#issue-457303976

After the release of the new version of Play Services by Google (June 17, 2019 see https://developers.google.com/android/guides/releases), I'm not able to build the project in Android Studio anymore.

The problem should be in build.gradle file in android folder.

Steps To Reproduce

  1. Create a new project (es. react-native init test)
  2. Add react-native-http-bridge (npm install --save react-native-http-bridge)
  3. Link (react-native link react-native-http-bridge)
  4. Open the android project in Android Studio and build it

The expected result is an error message saying

Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:7:5-117 to override.