App Crash on Start Up

Hi Guys

This flutter app work just fine on development environment, but when i run : flutter build appbundle and ship bundle to play store, on download app crashes with this exception

Any idea,

Exception java.lang.ExceptionInInitializerError: at com.backendless.UserService.getInstance (UserService.java) at com.backendless.Backendless. (Backendless.java) at com.backendless.Backendless.initApp (Backendless.java) at com.backendless.backendless_sdk.call_handlers.BackendlessCallHandler.initApp (BackendlessCallHandler.java) at com.backendless.backendless_sdk.call_handlers.BackendlessCallHandler.onMethodCall (BackendlessCallHandler.java) at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage (MethodChannel.java) at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler (DartMessenger.java) at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0 (DartMessenger.java) at io.flutter.embedding.engine.dart.DartMessenger.$r8$lambda$TsixYUB5E6FpKhMtCSQVHKE89gQ (DartMessenger.java) at io.flutter.embedding.engine.dart.DartMessenger$$InternalSyntheticLambda$0$ceffc6bae7d364cb48afaf1aaebd60bf9050360d0efb9035ebc54f0851df0a05$0.run (DartMessenger.java) at android.os.Handler.handleCallback (Handler.java:938) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loopOnce (Looper.java:201) at android.os.Looper.loop (Looper.java:288) at android.app.ActivityThread.main (ActivityThread.java:7839) at java.lang.reflect.Method.invoke (Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1003) Caused by java.lang.NullPointerException: Attempt to invoke virtual method ‘f5.e x4.f.g()’ on a null object reference at weborb.types.Types.addClientClassMapping (Types.java) at com.backendless.UserService. (UserService.java) at com.backendless.UserService. (UserService.java)


arrow_right_alt

Hi @Aldrin_Alain,

I have created an internal ticket with this issue to our flutter engineer (BKNDLSS-30340), he will respond to you asap.

Regards,
Stanislaw

Thanks Stanislaw

I have been investigating and I think the problem is not directly related to Backendless, I think the application does not have internet permissions and that is why the exception is generated, the problem is that it has everything necessary in the AndroidManifest.xml for internet use , but still the appbundle is generated without the corresponding permissions.

1 Like

I close the support ticket because I found the solution to the problem, it was related to code obfuscation