I\'ve created the project using the following command.
react-native init Awesome_Project
I\'ve started the packager using the following com
Sometimes you get this error because you don't uninstall another previous version of the app, on the LG phones you must go to app's on settings and uninstall the app, this happens to me.
In my case.. none of the above solution worked. Then, i found the cause of it, i had previously installed application with same package name. I had uninstalled it from my phone, but as i have Oreo device.. it was installed in another user also. So, by uninstalling from all users.. solved my issue. It might not be helpful in your case.. but still this is my workaround.
You may have deleted/uninstalled your app, but when you check in your settings/apps, you can see that it's not totally uninstalled.
Source
This issue occurred in my case when I uninstalled the app and tried installing with react-native run-android
again.
Following worked for me:
1. Go to Application List from Settings Menu.
2. You will see your application in the list with a message on the left side "App not installed for this user".
3. Open that app in the settings, and then click on the top-right menu icon and select "Uninstall for all users".
Hope it helps!
In my case, I had the wrong package_name (client.client_info.android_client_info.package_name
) in google-services.json (from Firebase). It had to match those four values as @parker mentioned.
I solved it by installing the debug application manually on the mobile phone.
To do so, go to [Project_Path]\android\app\build\outputs\apk\debug\app-debug.apk
Copy this app-debug.apk to your mobile device.
Now, just install it normally in your mobile and you are good to go.