App crash on start
See original GitHub issueWhen i try to make release apk my app crash on the start of the app. in debug app everything work good.
Error:
FATAL EXCEPTION: Thread-8498
Process: com.myapp, PID: 17875
Theme: themes:{default=overlay:com.cyngn.smartfren, iconPack:com.cyngn.smartfren, fontPkg:com.cyngn.hexo, com.android.systemui=overlay:com.cyngn.smartfren, com.android.systemui.navbar=overlay:com.cyngn.smartfren}
java.lang.ExceptionInInitializerError
at io.realm.react.RealmReactPackage.createNativeModules(RealmReactPackage.java:31)
at com.facebook.react.NativeModuleRegistryBuilder.processPackage(NativeModuleRegistryBuilder.java:106)
at com.facebook.react.ReactInstanceManager.processPackage(ReactInstanceManager.java:1172)
at com.facebook.react.ReactInstanceManager.processPackages(ReactInstanceManager.java:1142)
at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1080)
at com.facebook.react.ReactInstanceManager.access$900(ReactInstanceManager.java:113)
at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:911)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.ClassNotFoundException: Didn't find class "io.realm.react.util.SSLHelper" on path: DexPathList[[zip file "/data/app/com.myapp-1/base.apk"],nativeLibraryDirectories=[/data/app/com.myapp-1/lib/arm, /data/app/com.myapp-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at java.lang.Runtime.nativeLoad(Native Method)
at java.lang.Runtime.doLoad(Runtime.java:435)
at java.lang.Runtime.load(Runtime.java:330)
at java.lang.System.load(System.java:1069)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:71)
at com.facebook.soloader.DirectorySoSource.loadLibrary(DirectorySoSource.java:42)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:299)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:247)
at io.realm.react.RealmReactModule.<clinit>(RealmReactModule.java:59)
at io.realm.react.RealmReactPackage.createNativeModules(RealmReactPackage.java:31)
at com.facebook.react.NativeModuleRegistryBuilder.processPackage(NativeModuleRegistryBuilder.java:106)
at com.facebook.react.ReactInstanceManager.processPackage(ReactInstanceManager.java:1172)
at com.facebook.react.ReactInstanceManager.processPackages(ReactInstanceManager.java:1142)
at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1080)
at com.facebook.react.ReactInstanceManager.access$900(ReactInstanceManager.java:113)
at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:911)
at java.lang.Thread.run(Thread.java:818)
Suppressed: java.lang.ClassNotFoundException: io.realm.react.util.SSLHelper
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 18 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
first i tred with: “react”: “16.0.0”, “react-native”: “0.55.0”, “realm”: “^2.2.8”, after that i tried with: “react”: “16.4.1”, “react-native”: “0.55.4”, “realm”: “^2.13.0”,
doesn’t work too.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Why do my apps keep crashing on Android, How to fix it
How to fix apps that keep crashing on Android · 1. Force stop the app · 2. Restart the device · 4. Reinstall...
Read more >How to Fix Crashing Apps on an iPhone or Android?
If you have an app that does not respond when you try to interact with it on your smartphone screen, the traditional fix...
Read more >11 Quick Ways to Fix Apps Keep Crashing on Android - iMobie
Here are the detailed steps. Go to “Settings” > Apps > Find the app that keeps crashing.
Read more >App crashing immediately on start up after upgrading to iOS12.
Running fine in simulator but crashes in device. No crash logs recorded. In line error shown after launching the app Thread 1: EXC_BAD_ACCESS...
Read more >How to Fix Crashing Apps on iPhone & iPad | OSXDaily
2: Quit and Re-Launch the App ... Sometimes the simplest solution to a resolve a crashing application in iOS is to quit the...
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 FreeTop 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
Top GitHub Comments
I added this line to proguard and my problem solved -keep class io.realm.react.**
in proguard-rules.pro