react-native-multiple-image-picker icon indicating copy to clipboard operation
react-native-multiple-image-picker copied to clipboard

Android - app crashing in build created using ProGuard

Open energosai opened this issue 11 months ago • 1 comments

We have built the app using expo.

On android, we have enabled ProGuard on release builds i.e. in app.json file, in plugin, we have the enableProguardInReleaseBuilds flag true for the expo-build-properties plugin.

So, when running the app in release mode i.e. npx expo run:android --variant release, the app is crashing. On checking the device logs using adb logcat, I get to see this error message E ReactNativeJS: - Make sure the class is not stripped. If you are using ProGuard, add @Keepand@DoNotStripannotations toMultipleImagePicker., js engine: hermes".

Please help in resolving this error.

energosai avatar Jan 10 '25 19:01 energosai

Hello, you can try add this to your proguard-rules.pro: -keep class com.margelo.nitro.multipleimagepicker.** { *; }

NFSMONSTR avatar Feb 26 '25 09:02 NFSMONSTR