java.lang.NoClassDefFoundError: at host.exp.exponent.di.NativeModuleDepsProvider.<init> (NativeModuleDepsProvider.java:84)

The app runs in expo fine. But when distributed from the google play store it never runs. It stops after 1-2 miliseconds.

  1. SDK Version:
    Expo CLI 4.5.1 environment info:
    System:
    OS: Windows 10 10.0.19041
    Binaries:
    Node: 14.2.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.17.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD
    IDEs:
    Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5791312
    npmPackages:
    expo: ^41.0.1 => 41.0.1
    react: ~16.9.0 => 16.9.0
    react-dom: ~16.9.0 => 16.9.0
    react-native: ^0.63.0 => 0.63.4
    react-native-web: ~0.11.7 => 0.11.7
    Expo Workflow: managed
  2. Platforms(Android/iOS/web/all): Android

Google play is reporting the app carashes. This is the report provided:

java.lang.NoClassDefFoundError: 
  at host.exp.exponent.di.NativeModuleDepsProvider.<init> (NativeModuleDepsProvider.java:84)
  at host.exp.exponent.di.NativeModuleDepsProvider.initialize (NativeModuleDepsProvider.java:102)
  at host.exp.expoview.Exponent.<init> (Exponent.java:127)
  at host.exp.expoview.Exponent.initialize (Exponent.java:113)
  at host.exp.exponent.ExpoApplication.onCreate (ExpoApplication.java:62)
  at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1192)
  at android.app.ActivityThread.handleMakeApplication (ActivityThread.java:7501)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:7440)
  at android.app.ActivityThread.access$1400 (ActivityThread.java:301)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2148)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:246)
  at android.app.ActivityThread.main (ActivityThread.java:8506)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:602)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)

Any suggestions on this?

Hey @adarshkhatri, I’d suggest diving into our Debugging docs – specifically the production errors section.

Cheers,
Adam

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.