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 ( at com.backendless.Backendless. ( at com.backendless.Backendless.initApp ( at com.backendless.backendless_sdk.call_handlers.BackendlessCallHandler.initApp ( at com.backendless.backendless_sdk.call_handlers.BackendlessCallHandler.onMethodCall ( at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage ( at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler ( at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0 ( at io.flutter.embedding.engine.dart.DartMessenger.$r8$lambda$TsixYUB5E6FpKhMtCSQVHKE89gQ ( at io.flutter.embedding.engine.dart.DartMessenger$$InternalSyntheticLambda$0$ceffc6bae7d364cb48afaf1aaebd60bf9050360d0efb9035ebc54f0851df0a05$ ( at android.os.Handler.handleCallback ( at android.os.Handler.dispatchMessage ( at android.os.Looper.loopOnce ( at android.os.Looper.loop ( at ( at java.lang.reflect.Method.invoke ( at$ ( at ( 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 ( at com.backendless.UserService. ( at com.backendless.UserService. (


Hi @Aldrin_Alain,

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


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