Closed H-Shafiei closed 4 years ago
Same issue, my app crash when set progaurd is true
Same issue, my app crash when set progaurd is true
My app used to work with proguard but without any changes it stopped working! I am gonna reinstall android studio and see what happens
could you try again after upgrading your react native version to 0.61.5? it seems fixed.
reference: https://github.com/facebook/react-native/issues/14170
could you try again after upgrading your react native version to 0.61.5? it seems fixed.
reference: #14170
Thanks for your help. I think that rule is only for enabling hermes engine and not my issue. Anyways, thanks
Ok I got it working. I first tried to reinstall Android studio but it did not work. I then cleaned all my files with git clean -f -d -X
and rebuilt the project and now it works!
P.S. I had tried cd android && ./gradlew clean
but it did not work.
Hi. I was doing fine with my react native app. I made some changes to make my release apk smaller in size which were removing intel abi's from the output and enabling proguard. Everything was fine until I added some proguard rules to make it work with some library. But suddenly, the app installs but when running it crashes. This happens only in release mode and it stops when proguard is off! By the way it use to work a couple of days I don't know what happened that it suddenly crashes on start! This is the error by the way:
Why is this happening?? I really can't understant why should it work for a few days and then stop working?! I have tried to clean and delete all caches for android but again it did not work!
React Native version:
I don't know how to reproduce it! Btw here is my
app/build.gradle
:Thanks!