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

Unable to build Android project #17

Closed
dredev11 opened this issue Jun 19, 2019 · 0 comments · Fixed by #18
Closed

Unable to build Android project #17

dredev11 opened this issue Jun 19, 2019 · 0 comments · Fixed by #18

Comments

@dredev11
Copy link

Related to facebook/react-native#25294
Also relevant: facebook/react-native#25293 (comment)

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.

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

Successfully merging a pull request may close this issue.

1 participant