My react native app is crashing after enabling R8
by making the following changes in app/build.gradle
.
The build is successful but the app crashes on the run-time.
Here's the code:
My react native app is crashing after enabling R8
by making the following changes in app/build.gradle
.
The build is successful but the app crashes on the run-time.
Here's the code:
It took me days to debug this issue, so I wanted to write the solution that worked for me. I was trying to fix the issue by adding the rules in proguard-rules.pro
file for the packages that I was using but the main issue was in app/build.gradle
file only.
The issues are simple ones but were hard to get. Here are the issues:
debuggable true
-> My app started working fine after making debuggable falseproguard-rules.pro
.