-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
how to solve mainfest merger error? #25292
Comments
We are automatically closing this issue because it does not appear to follow any of the provided issue templates. 👉 Click here if you want to report a reproducible bug or regression in React Native. |
+1 I'm also facing this issue. and none of the solutions working so far. Here is my package.json
Project build.gradle `buildscript { allprojects { App build.gradle `apply plugin: "com.android.application" import com.android.build.OutputFile project.ext.react = [ apply from: "../../node_modules/react-native/react.gradle" def enableSeparateBuildPerCPUArchitecture = false android {
} dependencies {
} // Run this once to be able to run the application with BUCK apply plugin: 'com.google.gms.google-services'` |
+1!!! desperate! |
+1 ... I have the same issue, what is the solution ? |
+1 same issue |
+1 same issue today... |
FIXEDI had same issue Issue is something related to androidX , and I have lots of libraries in my package.json so I am not able to find which library causing issue. So I decided to update all libraries to latest version, . make sure you delete node_modules and install again after upgrading then ./gradlew clean and delete build folder in android after my current package json is below Hope this helps ! |
+1 ... I have the same issue, what is the solution ? |
+1...same issue here |
+1......facing same issue |
@BhavanPatel did this but same issue i got..remove ^ from all my package.json and npm reinstall.. |
+1...... same issue today |
@BhavanPatel this solution not work =D |
+1 ... SAME ISSUE!!! |
U need to upgrade all libs to latest version, not only removing ^ |
I'm not too sure about 4. and 5. but it's working for me like this. Be sure to revert this stuff when you update to 0.60+ and AndroidX support is provided by all libraries you use. As mentioned by @firehand33 it could be that you have to force the Google Play Services libraries versions, e.g.:
|
@ddthuan87 what steps u have followed? |
i'm clear gradlew -> delete all node_module -> npm_install -> it still shows the old error |
@ddthuan87 U need to upgrade packages to latest just cleaning and reinstalling wont work |
thk, i will try this again :D |
Now it show me another error:
FAILURE: Build failed with an exception.
|
+1 |
Please check again with |
I did follow your steps, and run ./gradlew app:dependencies but no help bro :(. I think it causes my libraries... |
@percyphan86 try my steps if it works |
tried this..and androidX is within the com.google.android.gms:play-services-base:16.1.0 -> 17.0.0 here is my dependencies `dependencies { }` |
Downgrade Google Play service version. In
to
So in my case <sevice_name> was |
+1 |
you can force google play service version in
my issue fixed :) |
@ydv0121 yes it is fixed you need to add the version which is used in your project |
In my case problem was produced by It has Solution: add |
solved it by updating all third party libraries as per @BhavanPatel said add dependencies like this
and also add this in android/build.gradle as per @dilipchandima said
thank you @BhavanPatel & @dilipchandima |
Same issue, build created but app crashing on start |
@ydv0121 Thanks for that list. Those version #s work for me! |
thanks to @igordevelops buildscript {
those resolved the dependency error and my app works. might help someone. |
@firehand33 thanks BRO!!!finally build success |
@JetCyC Thanks for the solution, it works for me. |
Thanks for this. It worked like charm. |
I recently made an article to address this AndroidX situation, you may find it useful. |
Thanks, wrote an article on this!! : https://medium.com/@zsubzwary/application-appcomponentfactory-issue-in-reactnative-project-possible-solution-3bc8afa97be?sk=201ea2c810de2c9199804aac06e17153 |
Thanks, @Yathousen for the article that I cannot read because it isn't free to read !! 😭😭😓😓😭😭 |
Hi @zsubzwary, I'm sorry but that's weird, I'm not even part of the partner's program, are you sure you cannot read it? Could you share with us a screenshot? |
@Yathousen here you go... |
Could you post your output when you executes step 1? |
|
got this error today to add the tools:replace in my mainfest
when i add tools:replace="android:appComponentFactory" to my mainfest file got another error -
don't understand how to resolve this?
The text was updated successfully, but these errors were encountered: