Crashing issue in android release build
Closed this issue · 3 comments
Hello, I am working on zendesk messaging in react native.
When I have build the android app in debug mode using react-native run-android --mode=devDebug, it works well.
But when building it in release mode using app:assembleDevRelease, it stops when app runs.
Here is my react native info:
System:
OS: macOS 14.3
CPU: (6) x64 Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
Memory: 5.11 GB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.17.1
path: ~/.nvm/versions/node/v18.17.1/bin/node
Yarn:
version: 1.22.19
path: /usr/local/bin/yarn
npm:
version: 9.6.7
path: ~/.nvm/versions/node/v18.17.1/bin/npm
Watchman:
version: 2023.01.02.00
path: /usr/local/bin/watchman
SDKs:
Android SDK:
API Levels:
- "26"
- "27"
- "28"
- "29"
- "30"
- "31"
- "33"
- "34"
Build Tools: - 30.0.2
- 30.0.3
- 33.0.0
- 33.0.1
- 34.0.0
System Images: - android-28 | Google APIs Intel x86 Atom
- android-29 | Intel x86 Atom_64
- android-29 | Google APIs Intel x86 Atom
- android-29 | Google APIs Intel x86 Atom_64
- android-29 | Google Play Intel x86 Atom
- android-30 | Google APIs Intel x86 Atom
- android-30 | Google Play Intel x86 Atom
- android-31 | Google APIs Intel x86_64 Atom
- android-31 | Google Play Intel x86_64 Atom
- android-33 | Google APIs ARM 64 v8a
- android-33 | Google APIs Intel x86 Atom_64
- android-33 | Google Play ARM 64 v8a
- android-33 | Google Play Intel x86 Atom_64
Android NDK: Not Found
IDEs:
Android Studio: 2023.3 AI-233.14808.21.2331.11709847
Languages:
Java:
version: 17.0.11
path: /usr/bin/javac
Ruby:
version: 3.1.2
path: /usr/local/opt/ruby/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.6
wanted: 0.73.6
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
How can I solve the issue?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
In the proguard rules add:
-keepnames class zendesk.** { *; }
-keep class org.json.**
-keepclassmembers,includedescriptorclasses class org.json.** { *; }
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.