Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application crash on startup #57

Open
mtilhan opened this issue Aug 25, 2022 · 0 comments
Open

Application crash on startup #57

mtilhan opened this issue Aug 25, 2022 · 0 comments

Comments

@mtilhan
Copy link

mtilhan commented Aug 25, 2022

Answer the below. DO NOT DELETE!!

  • Have you read the README and wiki carefully?

    • Yes
  • What version of the product are you using?

    • 0.20.0
  • On what which device system?

    • Samsung S7, Samsung S8
  • With which operating system?

    • Android 8.0, Android 9.0
  • From which operating system?

    • Win10
  • Which IDE are you using?

    • Animate 2020
  • Which version of AIR are you using?

    • 3.1.1.889, 3.1.1.929
  • What steps will reproduce the problem?

    1. Sample code downloaded and installed with air-tools (example folder)
    2. targetSdkVersion changed to 31
    3. It was built with Air 33.1.1.889 by opening the following configs;
      JAVA_HOME=[path_to_jdk-11.0.14]
  • What is the expected output? What do you see instead?

    • Builds but crashes on phone
  • Please provide any additional information below.
    Logcat crash log:

08-25 19:02:59.667 E/AndroidRuntime(19818): Process: air.com.tuarua.firebaseane.example, PID: 19818
08-25 19:02:59.667 E/AndroidRuntime(19818): java.lang.NoSuchFieldError: No static field common_google_play_services_unknown_issue of type I in class Lcom/google/android/gms/common/R$string; or its superclasses (declaration of 'com.google.android.gms.common.R$string' appears in /data/app/air.com.tuarua.firebaseane.example-7j_6e08G1n2v7z7ro9_bkw==/base.apk)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at com.google.android.gms.common.internal.StringResourceValueReader.<init>(com.google.android.gms:play-services-basement@@17.5.0:4)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at com.google.firebase.FirebaseOptions.fromResource(FirebaseOptions.java:156)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:243)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at com.google.firebase.provider.FirebaseInitProvider.onCreate(FirebaseInitProvider.java:51)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at android.content.ContentProvider.attachInfo(ContentProvider.java:1927)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at android.content.ContentProvider.attachInfo(ContentProvider.java:1902)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at com.google.firebase.provider.FirebaseInitProvider.attachInfo(FirebaseInitProvider.java:45)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at android.app.ActivityThread.installProvider(ActivityThread.java:6578)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at android.app.ActivityThread.installContentProviders(ActivityThread.java:6133)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6043)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at android.app.ActivityThread.-wrap1(Unknown Source:0)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at android.os.Handler.dispatchMessage(Handler.java:105)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at android.os.Looper.loop(Looper.java:164)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at android.app.ActivityThread.main(ActivityThread.java:6944)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at java.lang.reflect.Method.invoke(Native Method)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
08-25 19:02:59.667 E/AndroidRuntime(19818): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

  • Does this problem also occur in the Sample Application provided?
    • Yes

Additional Information:

Apart from these, I can say that the test application was successfully built in Air 3.1.1.135 version and there was no crash. But Google Play Store now requires app bundle and minimum api target must be 31. For this reason, I had to work on the new AIR version. To create an application bundle, a minimum of JDK 11+ is required. For this reason, I updated the JDK path. If the JDK is not changed (using jdk1.8.0_291) there is no crash.

There is a situation where exactly the same problem is experienced, here it says that the problem is caused by the incompatibility of some District Ane files, and it has been resolved by updating it. I guess it might be related to playservices-base. (airsdk/Adobe-Runtime-Support#934 (comment))

I've been searching for AIR issues for hours, but no solution is found. That's why I wanted to write here. I hope a solution can be found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant