I just updated to SDK36 and I can no longer run the app. I’ve tried to run it in the simulator. I see the splash screen for my app but then it crashes without any error logs. Was working fine on SDK35. Any ideas how to debug/fix?
Is this happening on a standalone app, or the Expo client? If it’s a standalone app, then you could try running locally in the Expo client, but in production mode (run expo start --no-dev --minify) to simulate the production environment and hopefully reproduce the crash
I guess i’m getting the same error here, but on android, SDK 36, working perfectly on developer and production mode, but crashes in standalone app on start. Splash screen appears, then the app crashes.
Android Studio Logs:
2020-01-24 14:43:31.166 32127-32127/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.localchat.localchat, PID: 32127
java.lang.NullPointerException: Attempt to invoke virtual method 'org.json.JSONObject org.json.JSONObject.getJSONObject(java.lang.String)' on a null object reference
at host.exp.exponent.t.c.a(ExperienceActivityUtils.java:48)
at host.exp.exponent.experience.f.n(ReactNativeActivity.java:5)
at host.exp.exponent.experience.f.a(ReactNativeActivity.java:1)
at host.exp.exponent.experience.f$b.run(ReactNativeActivity.java:1)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7520)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Seeing a similar crash in standalone mode (managed Expo app):
java.lang.RuntimeException:
at host.exp.exponent.experience.a$b.run (BaseExperienceActivity.java:7)
at android.os.Handler.handleCallback (Handler.java:883)
at android.os.Handler.dispatchMessage (Handler.java:100)
at android.os.Looper.loop (Looper.java:214)
at android.app.ActivityThread.main (ActivityThread.java:7356)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:930)
Hi. This stack trace is from Android and unfortunately it’s impossible to tell what the problem is from that. There should be an error message just before the stack trace that gives the actual problem.
But one possibility is a known problem with dark mode on SDK 36. Another possibility is an incomplete OTA update. Another possibility is using the wrong type in your code. e.g. specifying style={{padding:"20px"}} instead of `style={{padding:20}}