My RELEASED version of the app crashes when initialize with Backendless and without initializing works fine. I don’t use proguard.
This is Google play crash report:
ATAL EXCEPTION: main
Process: com.foroodja.retailers, PID: 18830
java.lang.ExceptionInInitializerError
at b.a.e0.m(Unknown Source:0)
at b.a.e.<clinit>(Unknown Source:15)
at b.a.e.r(Unknown Source:0)
at b.a.i0.b.a.f(Unknown Source:8)
at b.a.i0.b.a.M(Unknown Source:86)
at d.a.c.a.j$a.a(Unknown Source:17)
at io.flutter.embedding.engine.f.b.e(Unknown Source:49)
at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(Unknown Source:4)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:326)
at android.os.Looper.loop(Looper.java:160)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'e.k.e e.d.f.g()' on a null object reference
at e.k.e.i(Unknown Source:4)
at b.a.e0.<init>(Unknown Source:7)
at b.a.e0.<clinit>(Unknown Source:16)
I moved the initialization to different pages. On any page, the app wants to initialize it crashes.
I updated the flutter, any packages in my project, and Backendless to 7.2.3. And also tried any solution on the internet I could find.
I even made a balnc project with flutter just put backendless package and initialize it, then build apk and it crashes. Removed the initialization works.
@Ehsan_Nikaeen1, I don’t have any problems.
You need to call setUrl if your app is on EU server. It just needs to be done after initApp.
Debug version is work as expected for you?
What version of backnedless_sdk are you using?
Yes, I was working fine all way and when I published it to google play I realized it crashes. It wasted two weeks of my time now, I delete every package from the app until getting to backendless. I use 7.2.3 version.
I can assume that something is wrong with the gradle, manifest or proguard settings.
Right now we have a BackendlessViewer app on the public google play and appstore that uses the backendless_sdk. Here is it build.gradle settings: