Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android - app crashing in build created using ProGuard #217

Open
energosai opened this issue Jan 10, 2025 · 1 comment
Open

Android - app crashing in build created using ProGuard #217

energosai opened this issue Jan 10, 2025 · 1 comment

Comments

@energosai
Copy link

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 energosai changed the title android - app crashing in build created using ProGuard Android - app crashing in build created using ProGuard Jan 10, 2025
@NFSMONSTR
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants