Why my signed apk crashes?
For anyone getting this in a react-native
environment, remember to bundle your js before generating the signed APK.
Easy to forget if you're using something like Android Studios GUI ð
In my case, I had to change the minifyEnabled
to false
in build.gradle
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Delete "gen" folder from the Project then Cleaning the project
Cleaning the project solved the problem in my case.