Hi, i have an Expo project (SDK 40) that works fine on IOS simulator ( Iphone, Ipad ) with different IOS versions no problem, but when it comes to android simulator it crashes right after the splash screen, when build the apk file and trying it on a physical android device it works with no problems, the only issue is with the android simulator, any ideas?
Expo diagnostics :
Expo CLI 4.2.1 environment info:
OS: Windows 10 10.0.18362
Node: 12.18.3 - C:\Program Files\nodejs\node.EXE
npm: 6.14.6 - C:\Program Files\nodejs\npm.CMD
Android Studio: Version 22.214.171.124 AI-193.69126.96.36.19926763
expo: ^40.0.0 => 40.0.1
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2
react-native-web: ~0.13.12 => 0.13.18
Expo Workflow: managed
For anyone with this problem i just discovered the issue, all i had to do is to remove the “image” from the splash configuration on the file app.json which means for some reason the emulator doesn’t accept that image and i have to change it, disabling it allowed the emulator to run the project again with no issues
I’m glad you were able to solve this!
Did you get any error messages when running it on the android emulator?
No, everything worked perfectly no error messages at all, the issue was that the splash screen image i used was a very big one with the size over 3420px and the emulator had problems rendering it, i used it in the first place to keep the quality at the best in higher resolution phones since i couldn’t use svg one there (the splash screen only support png), i reduced the image size to 1242 x 2688 and it worked with no issues.
I am having the same crashing issue but mine happens when I use in my code. It doesn’t matter what the size of the image is or what format, once the code has ImageBackground, Expo android crashes. Took me almost a whole day to debug and reach this conclusion.
I am having the same crashing issue but mine happens when I use in my code. It doesn’t matter what the size of the image is or what format, once the code has ImageBackground, Expo android crashes. Took me almost a whole day to debug and reach this conclusion. Is there any other solution?
If you create a new app and add an ImageBackground to it, does it crash?
If so, can you post the code (e.g. on GitHub) so that we can try it ourselves?
I am working on that. Please I have an even more pressing issues. In the app I am building on this Expo snack, the button on “LoginPage” that leads to “LoginScreen” when pressed doesn’t work on Android. Both emulator, Apetize emulator and real device.
iOS and web works fine.
What am I getting wrong, please?