-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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 release crashes upon start. Stuck for a few days. Please help. (adb logcat included) #12013
Comments
Okay, so I ended up wiping the entire project and recloning it from GitHub. When I tried to start the app again in dev mode via
I then realized the reason my app wasn't starting was because I didn't add the .env files back (because I just wiped it, cloned it, and I'm not committing my .env files). This led me to conclude that in my release build, my .env wasn't being set properly. I'm actually running a command like this:
I changed it to this:
It's not clear to me where or where I don't need I also added this to my ProGuard:
because https://github.com/luggit/react-native-config#problems-with-proguard. Btw, I use Apollo GraphQL, and
(because my .env config wasn't getting to my release properly). Crazy stuff. |
Pro tips for posting here and on Stack Overflow:
Note also that succinct and description titles are good in both places. "Please help" and "I'm stuck" is begging, which can sometimes rub volunteers up the wrong way. Hope that feedback helps! |
Runs great in dev mode, release crashes upon start.
adb logcat
build.gradle
I have tried:
then:
The text was updated successfully, but these errors were encountered: