Android run release in detached project crashing on start

Hi im getting an error at the start of the application when i change the build variant to release.
Im getting the same error building with ./gradlew assembleRelease
Im using sdk version 21.0.0 and before i did it i published it through XDE client

Any thought?

This is the log:

04-04 13:25:20.462 27835-27875/? E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
Process: com.nxt.zero, PID: 27835
java.lang.RuntimeException: Could not load app.
at host.exp.exponent.kernel.ExpoViewKernel.handleError(ExpoViewKernel.java:76)
at host.exp.expoview.ExponentActivity$2.onError(ExponentActivity.java:115)
at host.exp.exponent.ExponentManifest$3.handleResponse(ExponentManifest.java:237)
at host.exp.exponent.ExponentManifest$3.onResponse(ExponentManifest.java:258)
at host.exp.exponent.network.ExponentHttpClient$2$1.onResponse(ExponentHttpClient.java:100)
at expolib_v1.okhttp3.RealCall$AsyncCall.execute(RealCall.java:135)
at expolib_v1.okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
Caused by: Could not load app.
at host.exp.exponent.ExponentManifest$3.handleResponse(ExponentManifest.java:237)
at host.exp.exponent.ExponentManifest$3.onResponse(ExponentManifest.java:258)
at host.exp.exponent.network.ExponentHttpClient$2$1.onResponse(ExponentHttpClient.java:100)
at expolib_v1.okhttp3.RealCall$AsyncCall.execute(RealCall.java:135)
at expolib_v1.okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
04-04 13:25:20.464 5503-8691/? W/ActivityManager: crash : com.nxt.zero,0
04-04 13:25:20.465 5503-8691/? W/ActivityManager: Force finishing activity com.nxt.zero/.MainActivity

Regards!

I dont know what i did but now im getting the same error using ‘debug’ variant. I have no changes in my git, cloned my repo again and still the same error in both build variants ‘debug’ and ‘release’

Hi @fcaride - sounds like the app is having trouble finding your JS bundle. Are you sure you’ve published recently? Have you tried running the gradle commands with and without the packager in XDE running?

I managed to solve it by upgrading the sdk to the lastest one. Thank you

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