Backendless.InitApp is causing crash when I create a release build and deploy to a device. But I don’t experience this in debug builds.
App ID: A24504AE-F1E6-D356-FFF0-4C7ED9E86A00
java.lang.ExceptionInInitializerError:
at com.backendless.UserService.getInstance (UserService.java:5)
at com.backendless.Backendless. (Backendless.java:5)
at com.backendless.Backendless.a (Backendless.java)
at ng.Payback.App.onCreate (App.java:146)
at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1154)
at android.app.ActivityThread.handleBindApplication (ActivityThread.java:5911)
at android.app.ActivityThread.access$1200 (ActivityThread.java:208)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1680)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:193)
at android.app.ActivityThread.main (ActivityThread.java:6715)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:911)
Caused by: java.lang.NullPointerException:
at weborb.config.ORBConfig.getTypeMapper (ORBConfig.java:3)
at weborb.types.Types.addClientClassMapping (Types.java:3)
at com.backendless.UserService. (UserService.java:7)
at com.backendless.UserService. (UserService.java:2)
at com.backendless.UserService.getInstance (UserService.java:5)
at com.backendless.Backendless. (Backendless.java:5)
at com.backendless.Backendless.a (Backendless.java)
at ng.Payback.App.onCreate (App.java:146)
at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1154)
at android.app.ActivityThread.handleBindApplication (ActivityThread.java:5911)
at android.app.ActivityThread.access$1200 (ActivityThread.java:208)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1680)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:193)
at android.app.ActivityThread.main (ActivityThread.java:6715)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:911)
Hello @Nkekere_Tommy_Minimann
I can not found Application with id A24504AE-F1E6-D356-FFF0-4C7ED9E86A00. Check, please, maybe we are talking about an application with app ID F8C6F7F3-E6B2-BCC8-FFF7-2CA63032F900 -?
Am sorry I deleted the previous app. This is the ID of the current app.
F8C6F7F3-E6B2-BCC8-FFF7-2CA63032F900
Can you also specify what version of Android SDK do you use, please?
Best Regards,
Maksym
Am using Backendless Android SDK version 5.7.0
Please, use our latest version of Backendless Android SDK which is now 6.0.1
Regards,
Marina
I have updated to Backendless SDK version 6.0.1 and the problem still persists
Please make sure that your Proguard configuration includes the following:
https://backendless.com/docs/android/setup.html#proguard-configuration
Thanks Mark, problem solved.