React Native - Android App Working On Debug, Crashing On Release
I'm using React Native v0.19, and when running on Android my app works just fine on Debug, but immediately crashes when I run it in Release mode, or from the signed release apk. An
Solution 1:
This is a bug that happens because two classes were moved to another package on version v0.19 of React Native: ReactProp
ReactPropGroup
. To fix this error, open your proguard-rules.pro
and edit the following lines:
-keepclassmembers class * { @com.facebook.react.uimanager.ReactProp <methods>; }
-keepclassmembers class * { @com.facebook.react.uimanager.ReactPropGroup <methods>; }
for:
-keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp <methods>; }
-keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup <methods>; }
Reference:
Post a Comment for "React Native - Android App Working On Debug, Crashing On Release"