I’m in step 4, trying to build an apk for Android for testing my app on a real device by installing it.
I already followed the configuration and the command “eas build -p android --profile preview” described here: Building APKs for Android emulators and devices - Expo Documentation, and I already made all of the changes to the eas.json and app.json files required in these guides.
I already tried my app in development in an android studio emulator as well as my real device with the expo go app and it works fine. My build is done without any issues.
I see the build in my project dashboard on the expo webpage, but the problem is, when I install the APK (either in the emulator from the android studio or my real device), the app gets installed, but when I try to open it, I see the splash screen for a second and then the app shuts down (no feedback is given).
Has someone experienced this problem before? or any good ideas on how to approach this issue?
I Have not found a solution, but in my case, I confirmed that it has to do with the google maps api, because i rebuilt the same app and when building and testing, I got the same error, when I built the apk and use google maps.
This error is located at:
in b, stack:
value @ 63:3821 @63:759
value @ 63:2583
value @ 63:731
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.jni.NativeRunnable.run(Native Method)
I got this error from my Xiaomi phone, it provides error log if any app crashes. Above links did not help me. I managed to solve the issue by installing “react-native-gesture-handler” package in the project. I am not sure if it would work for everyone.