Release build on detached project doesn't run

Hi!
So I have detached expo project. It works perfectly fine on emulators and with debug build on my phone too (as soon as I use the same wi-fi). But when I build release apk and try to run it on real device, It just crashes right after start with this error:

2018-12-07 14:17:42.361 25177-25177/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.nploy.mobileapp, PID: 25177
    java.lang.RuntimeException: Unable to create application host.exp.exponent.MainApplication: java.lang.RuntimeException: NativeModuleDepsProvider could not find object for class class android.app.Application
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6482)
        at android.app.ActivityThread.-wrap2(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1969)
        at android.os.Handler.dispatchMessage(Handler.java:109)
        at android.os.Looper.loop(Looper.java:166)
        at android.app.ActivityThread.main(ActivityThread.java:7383)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)
     Caused by: java.lang.RuntimeException: NativeModuleDepsProvider could not find object for class class android.app.Application
        at host.exp.exponent.a.a.b(NativeModuleDepsProvider.java:1092)
        at host.exp.exponent.c.q.<init>(Kernel.java:146)
        at host.exp.exponent.l.a(ExpoApplication.java:67)
        at host.exp.exponent.c.an.a(KernelProvider.java:26)
        at host.exp.exponent.k.onCreate(ExpoApplication.java:79)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1123)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6467)
        at android.app.ActivityThread.-wrap2(Unknown Source:0) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1969) 
        at android.os.Handler.dispatchMessage(Handler.java:109) 
        at android.os.Looper.loop(Looper.java:166) 
        at android.app.ActivityThread.main(ActivityThread.java:7383) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963) 

I did the publishing, and I have this in my MainActivity.java:

  @Override
  public String publishedUrl() {
    return "exp://exp.host/@kuzkokov/nPloy";
  }

But I’m new in expo, and the app was detached already, so it might be that I just missing some config or something like that. So please point me out on that. Thanks!

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