The React Native App will work if it is signed and released. Works great in debug mode

The React Native App will work if it is signed and released. Works great in debug mode. This does not cause any errors on the screen. He just falls. When I looked at the cat magazine. no error.

I also tried to build apk using --info, but without additional information during the crash. I also tried to create an APK by setting minifyEnabled false.

When I launch the application in debug mode, connecting my phone via USB, it works. I am trying to create apk with --debug, but I can’t install it on my phone, it says that when trying to install using the application installer, a parsing error occurs.

I got the following logcat errors. What does it mean?

09-03 11:03:07.968 W/ActivityManager(1344): Force finishing activity com.myapp/.MainActivity 09-03 11:03:08.012 W/BroadcastQueue(1344): Skipping deliver [background] BroadcastRecord{cb72147 u-1 android.net.conn.CONNECTIVITY_CHANGE} to ReceiverList{7bf2161 22421 com.myapp/10100/u0 remote:b9cdcc8}: process crashing 09-03 11:03:08.035 W/ActivityManager(1344): Dismiss app error dialog : com.myapp 09-03 11:03:13.095 I/WindowState(1344): WIN DEATH: Window{3f22c22 u0 /com.myapp.MainActivity} 
+7
react-native
source share
3 answers

I finally found the reason. There is a module called reaction-native-material-design-searchbar that causes the problem. The strange part is that if you directly copy SearchBar.js from this module and use it, everything works fine even in version, but if you use the module as direct import, it does not work only in release mode. So strange. SearchBar is good, so now I use it directly by copying the file to my project.

+1
source share

As my experience of responding to native, I used the same error as you. To solve this problem, I just follow the documentation line by line and it works fine ...

When creating an application to create, you must first subscribe to apk. After that just run

./gradlew assembleRelease

to install the release app on your phone.

Doc here

+2
source share

I fixed this error by removing uglifyjs and reinstalling the latter (using NPM ).

0
source share

All Articles