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
Android application keeps stopping . Does not work react-native-navigation on Android #2989
Comments
I am having a very similar issue. My project builds successfully, but a blank screen appears in the android emulator, and the developers menu cannot be accessed. I've posted my setup and screenshots in this similar thread. #2687 |
Try this, |
@sinevitch Open Logcat while you are opening the app, and look for crash log and share it here. |
Same here : and "Unfortunately, Application has stopped" message on the emulator trying adb logcat in terminal but can't locate the error source !! any updates on the issue? |
Facing the same issue. any fix? |
Any update on this issue? |
In android, changed react-native dependeny to Version should be exact same as in package.json |
Any update on this issue? |
The single crash log which was posted here has nothing to do with RNN. I'm closing as we really can't help you resolve this issue. |
I am having this very same problem :( |
The same issue after linking with react-native-firebase. No logs. It's just crashing on the physical device. |
any solution for your problem, im new to react-native, i got the same problem after adding react-native-firebase |
I've got it. The problems lies in the android/app/build.gradle dependency versions. Try to put there all the new one version numbers looking at (in this case for Android): Then, the immediate shutting down should no longer appears. Then you probably see other exceptions but just follow any other tips. |
i just moved google() in
|
Try by changing your
|
Corriendo un app con react-native
espero ayude |
try to run from terminal, react-native run-android this worked for me i hope it works for you |
@potatokoosh It also didn't work for me, but my message is "myApp keeps stopping". Does anybody have any other solutions? |
having the same error message for the Android release build. Are there any tools to debug what is going on in the release build? |
In my case the application loads when the phone is connected to the metro-builder, but once the phone is disconnect from the Metro-builder the application crashes. |
I had the same problem. But I just fixed it by pressing Ctrl + M a few times. I do not know how it works. |
I have the same problem. :| |
I closed the app and relaunched it from the Android, it worked for me. |
I had a similar problem, I fixed it by removing component from screen that I wanna navigate to it, and it was nativeBase Picker component |
I had this problem with the lib react-native-pdf-lib. With LogCat i figure it out, i had to ask for |
Occurred to me as well, just like this without adding packages. |
I solved this issue (in my case) using this link: https://medium.com/@impaachu/react-native-android-release-build-crash-on-device-14f2c9eacf18. |
It seems that there could be different reasons for this to happen and the best way to nail the cause is by using this method. I solved mine with this and for my case, it's because of a library that I installed. I solved it by uninstalling that library. |
Maybe you don't have |
I could not solve the problem but you can just '' react-native init '' and change app.js from the the old app. |
Maybe you should restart Metro bundler |
same here |
Does that solved the problem? |
See that you don't have two react-native versions installed simultaneously. Do : If there are two RN versions, there will be a version mismatch and the app will keep stopping.
|
Debug/run the project in android studio where you will be able to see error logs. For my case, there are a lot of issues as haven't tested in android for a very long time. |
Works for me: evollu/react-native-fcm#998 (comment) |
In my case |
how can i remove this error.. 2020-01-30 01:06:07.156 3396-3396/com.dotundo.androiddoctor E/AndroidRuntime: FATAL EXCEPTION: main |
For me the problem was I was following steps from react-native docs instead react-navigation official docs. The first one does not mention this step: To finalize installation of react-native-screens for Android, add the following two lines to dependencies section in android/app/build.gradle:
|
I solved this error by updating the version of Android Studio. |
Updating is what go me into this mess. |
|
@Cmion answer works in Ubuntu 20.4 as well |
what solved it for me was cleaning the project, so it might work for you. then just run |
Assuming environment is set up correctly and you are not using Expo, run the following: ~ cd android This worked for me. |
I only met this problem on android 8 but it worked on android 7, 8.1 ,9 and 10 |
Just got through this issue after a solid day or two of smacking my face against the wall with it lol. Not sure if this will help anyone, but this was the issue for me: After ejecting from expo, src/main/java/.../MainActivity.java and MainApplication.java were not generated. For whatever reason, I was still able to run on android using 'expo start' even with this being that case. When running react-native run-android, I found that first issue (got a bunch of errors saying that there was no MainApplication file). Not a problem, just went ahead and added my own. After adding my own, I started seeing the issue that this thread is mentioning. I tried a bunch of stuff, but what ended up being the case for me was that the Again, not saying this will be the issue for everyone, but might be worth it to take a look at your src/main/java//... files to see if anything looks off. To figure out what these files are supposed to look like, i just checked out some other projects (for instance the expo bare project templates repo) for reference. If you're able to run logcat, that'll definitely help, but in my case I don't think the app was even being mounted, thus logcat wasn't showing any errors, so I had to brute force it haha. |
i was facing he same issue but when I uninstall the app and run it again on my phone then it worked properly |
I solved it by deleting the |
Thanks @mutabazigakuba This worked for me |
My problem was that one of my styles had the following: |
It works for me thanks to @iankressin. Actually there is always dependence issues when you install new dependence, so you just clean the cache and restart it. GOOD LUCK! |
It works for me android:usesCleartextTraffic="true"in ./android/app/src/main/AndroidManifest.xml add |
I'm learning react native for 1week so,i'm sharing my error fix, in my case i debugged and i cleared the things one by one that i added . Atlast there is an svg and i removed the svg, after that the app started to work fine. then i found some libraries to use svg images. |
In my issues, creating lauchscreen.xml inside layout folder
and it worked |
Issue Description
Does not work react-native-navigation on Android
Starting : Intent { …MainActivity }.
Did everything as indicated in the documentation. I launch the Android Studio emulator.
On iOS, the same code works fine
index.ios.js
import App from './App';
index.android.js
import App from './App';
app.js:
auth.js:
settings.gradle
build.gradle
MainActivity.java
MainApplication.java
I tried to use the version of "react-native": "^ 0.49.5",
The same thing happens
Android does not work
IOS works
Environment
The text was updated successfully, but these errors were encountered: