Android App crash in start

#1

I have fresh CRNA app, no changes just ejected with ExpoKit. When starting to emulator it is working fine but running on real device doesn’t work, it crashes on start up (Unfortunately, app has stopped).

Device is Samsung Galaxy Tab Active 8.0 with Android 5.1.1 (no updates available). Error log from Android Studio:

E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: fi.efleet.mobile, PID: 28007
                  java.lang.NoClassDefFoundError: Failed resolution of: Lcom/nostra13/universalimageloader/core/ImageLoader;
                      at host.exp.expoview.Exponent.<init>(Exponent.java:173)
                      at host.exp.expoview.Exponent.initialize(Exponent.java:98)
                      at host.exp.exponent.experience.ReactNativeActivity.onCreate(ReactNativeActivity.java:142)
                      at host.exp.expoview.ExponentActivity.onCreate(ExponentActivity.java:69)
                      at android.app.Activity.performCreate(Activity.java:6608)
                      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1134)
                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3086)
                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3243)
                      at android.app.ActivityThread.access$1000(ActivityThread.java:218)
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1718)
                      at android.os.Handler.dispatchMessage(Handler.java:102)
                      at android.os.Looper.loop(Looper.java:145)
                      at android.app.ActivityThread.main(ActivityThread.java:6914)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at java.lang.reflect.Method.invoke(Method.java:372)
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
                   Caused by: java.lang.ClassNotFoundException: Didn't find class "com.nostra13.universalimageloader.core.ImageLoader" on path: DexPathList[[zip file "/data/app/fi.efleet.mobile-2/base.apk", zip file "/data/app/fi.efleet.mobile-2/split_lib_dependencies_apk.apk", zip file "/data/app/fi.efleet.mobile-2/split_lib_slice_0_apk.apk", zip file "/data/app/fi.efleet.mobile-2/split_lib_slice_1_apk.apk", zip file "/data/app/fi.efleet.mobile-2/split_lib_slice_2_apk.apk", zip file "/data/app/fi.efleet.mobile-2/split_lib_slice_3_apk.apk", zip file "/data/app/fi.efleet.mobile-2/split_lib_slice_4_apk.apk", zip file "/data/app/fi.efleet.mobile-2/split_lib_slice_5_apk.apk", zip file "/data/app/fi.efleet.mobile-2/split_lib_slice_6_apk.apk", zip file "/data/app/fi.efleet.mobile-2/split_lib_slice_7_apk.apk", zip file "/data/app/fi.efleet.mobile-2/split_lib_slice_8_apk.apk", zip file "/data/app/fi.efleet.mobile-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/fi.efleet.mobile-2/lib/arm, /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 host.exp.expoview.Exponent.<init>(Exponent.java:173) 
                      at host.exp.expoview.Exponent.initialize(Exponent.java:98) 
                      at host.exp.exponent.experience.ReactNativeActivity.onCreate(ReactNativeActivity.java:142) 
                      at host.exp.expoview.ExponentActivity.onCreate(ExponentActivity.java:69) 
                      at android.app.Activity.performCreate(Activity.java:6608) 
                      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1134) 
                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3086) 
                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3243) 
                      at android.app.ActivityThread.access$1000(ActivityThread.java:218) 
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1718) 
                      at android.os.Handler.dispatchMessage(Handler.java:102) 
                      at android.os.Looper.loop(Looper.java:145) 
                      at android.app.ActivityThread.main(ActivityThread.java:6914) 
                      at java.lang.reflect.Method.invoke(Native Method) 
                      at java.lang.reflect.Method.invoke(Method.java:372) 
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) 
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199) 
                  	Suppressed: java.lang.ClassNotFoundException: com.nostra13.universalimageloader.core.ImageLoader
                      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 available
W/ResourcesManager: Asset path '/system/framework/com.android.media.remotedisplay.jar' does not exist or contains no resources.
W/ResourcesManager: Asset path '/system/framework/com.android.location.provider.jar' does not exist or contains no resources.
D/Exponent: Loaded exp.host status page.
E/com.amplitude.api.DeviceInfo: Encountered an error connecting to Google Play Services
                                java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
                                    at com.amplitude.api.DeviceInfo$CachedInfo.getAndCacheGoogleAdvertisingId(DeviceInfo.java:207)
                                    at com.amplitude.api.DeviceInfo$CachedInfo.getAdvertisingId(DeviceInfo.java:187)
                                    at com.amplitude.api.DeviceInfo$CachedInfo.<init>(DeviceInfo.java:57)
                                    at com.amplitude.api.DeviceInfo$CachedInfo.<init>(DeviceInfo.java:42)
                                    at com.amplitude.api.DeviceInfo.getCachedInfo(DeviceInfo.java:260)
                                    at com.amplitude.api.DeviceInfo.prefetch(DeviceInfo.java:266)
                                    at com.amplitude.api.AmplitudeClient$2.run(AmplitudeClient.java:285)
                                    at com.amplitude.api.AmplitudeClient.runOnLogThread(AmplitudeClient.java:1793)
                                    at com.amplitude.api.AmplitudeClient.initializeDeviceInfo(AmplitudeClient.java:280)
                                    at com.amplitude.api.AmplitudeClient.access$100(AmplitudeClient.java:40)
                                    at com.amplitude.api.AmplitudeClient$1.run(AmplitudeClient.java:232)
                                    at android.os.Handler.handleCallback(Handler.java:739)
                                    at android.os.Handler.dispatchMessage(Handler.java:95)
                                    at android.os.Looper.loop(Looper.java:145)
                                    at android.os.HandlerThread.run(HandlerThread.java:61)

Any ideas what could be the reason? I hope it’s not Android version as our client is stuck with these tablets at the moment.

#2

Got this fixed with Google Play update but now I’m stuck with error explained here: