[Android] Release build with proguard is crashing in 2.3.0-alpha3, worked fine in alpha 2.
See original GitHub issueDescription
Expected behavior
Start production app without crashing.
Actual behavior & steps to reproduce
Release build crashes when starting if proguard is enabled. Works fine when proguard is disabled. Only happened when upgraded to alpha 3 version, 2.2.0 and alpha 2 worked fine.
Snack or minimal code example
Package versions
- React Native: 0.65.1
- React Native Reanimated: 2.3.0-alpha.3
- NodeJS: 14.17.3
- Xcode: 12.5.1
- Java & Gradle: java 1.8.0_301; AGP 4.2.2; Gradle 6.9.1
Affected platforms
- Android
- iOS
- Web proguard-rules-staging.txt
Stacktrace:
ReanimatedNativeHierarchyManager.java, line 7
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.facebook.react.uimanager.l1.e.b(android.view.View, int, int, int, int)' on a null object reference
com.swmansion.reanimated.layoutReanimation.g.C ReanimatedNativeHierarchyManager.java:7
com.facebook.react.uimanager.y0$v.b UIViewOperationQueue.java:2
com.facebook.react.uimanager.y0$a.run UIViewOperationQueue.java:18
com.facebook.react.uimanager.y0.U UIViewOperationQueue.java:10
com.facebook.react.uimanager.y0.s UIViewOperationQueue.java:1
com.facebook.react.uimanager.y0$j.c UIViewOperationQueue.java:6
com.facebook.react.uimanager.f.a GuardedFrameCallback.java:1
com.facebook.react.modules.core.g$d.a ReactChoreographer.java:7
com.facebook.react.modules.core.a$a$a.doFrame ChoreographerCompat.java:1
android.view.Choreographer$CallbackRecord.run Choreographer.java:1008
android.view.Choreographer.doCallbacks Choreographer.java:809
android.view.Choreographer.doFrame Choreographer.java:740
android.view.Choreographer$FrameDisplayEventReceiver.run Choreographer.java:995
android.os.Handler.handleCallback Handler.java:938
android.os.Handler.dispatchMessage Handler.java:99
android.os.Looper.loop Looper.java:246
android.app.ActivityThread.main ActivityThread.java:8512
java.lang.reflect.Method.invoke Method.java
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run RuntimeInit.java:602
com.android.internal.os.ZygoteInit.main ZygoteInit.java:1130
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Android App crashes on Release Build with the use of ...
I'm new to the use of Proguard and Dagger for Android apps, so I would really appreciate if someone could give me a...
Read more >WorkManager - Android Developers
Latest Update, Stable Release, Release Candidate, Beta Release, Alpha Release ... Add the dependencies for the artifacts you need in the build.gradle file ......
Read more >StackOverflowError in release build with R8 in full mode ...
Crashes appear only in release build (with R8 in full mode and "proguard-android-optimize.txt" rules set). But as stacktraces pointed to coroutine classes, I ......
Read more >Android App suddenly crashes when compiling in Release ...
My App was working fine when build to release mode, and both when ... If you search google for xamarin.android proguard/r8 you should...
Read more >Crash | HuaweiService | 2.3.0
Crash Service of AppGallery Connect is a lightweight crash analysis service, ... Setting up unity Custom Android gradle and Proguard.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think I know why it happens, but could you paste here logs from the crash? - this will be really helpful
Hi! Are you still experiencing this problem after upgrading to the stable release of 2.3?