-
Notifications
You must be signed in to change notification settings - Fork 871
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
App crashes immediately (Android) #22
Comments
I got some progress.. if u do NOT rename the project by yarn, you can actually see RN's red background error screen with "Unable to connect with remote debugger" |
I found that the gradle API level is 26 so make sure your environment complies. Next step is to press Ctrl-M in android emulator -> Dev settings, put localhost:8081, then close all cmd boxes and restart. Viola! It's working! |
I'm facing the same issues renaming the project using
With this, the app crashes immediately at startup. |
Hi @Zefau ! Please check if all occurences are successfully renamed in : Commun
...
AppRegistry.registerComponent('XXXXXX', () => App)
{
"name": "XXXXXX",
"displayName": "XXXXXX"
} Android
rootProject.name = 'XXXXXX'
...
...
/**
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
*/
@Override
protected String getMainComponentName() {
return "XXXXXX";
}
... iOS
...
<key>CFBundleDisplayName</key>
<string>XXXXXX</string>
...
Make sure that you restart your Metro Bundler and rebuild the App. |
The project name is updated in the following files
But the file When I copy and edit the files manually, it works. |
Thanks for the PR ! ❤️ Yes can you please create a dedicated issue to this problem ? |
I am quite new to the repo and I cannot make it work on API 23 emulator or a physical Android 5 device. The app crashes once loaded, without any react native red background error. Would appreciate if you can take a look. Remote debugger shows nothing since the RN is not loaded yet I suspect.
react-native run-android completes without any error in console though.
React Native Environment Info:
System:
OS: Windows 10
CPU: x64 Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
Memory: 7.60 GB / 15.96 GB
Binaries:
Yarn: 1.9.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 5.3.0 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.1.0.0 AI-173.4907809
The text was updated successfully, but these errors were encountered: