Problem with Android 14

221 views
Skip to first unread message

Maiquel Ferreira

unread,
Mar 26, 2024, 9:41:00 PM3/26/24
to Google Mobile Ads SDK Developers
I recently launched my game on the playstore and all Android 14 players are reporting that the game doesn't open or stays on a black screen, It appears to be an SDK initialization issue, error below.

AndroidJavaException: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/lifecycle/DefaultLifecycleObserver;
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/lifecycle/DefaultLifecycleObserver;
com.unity3d.player.UnityPlayer.nativeRender(Native Method)
com.unity3d.player.UnityPlayer.access$500(Unknown Source:0)
com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:126)
android.os.Handler.dispatchMessage(Handler.java:102)
android.os.Looper.loopOnce(Looper.java:201)
android.os.Looper.loop(Looper.java:288)
com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
Caused by: java.lang.ClassNotFoundException: androidx.lifecycle.DefaultLifecycleObserver
... 7 more
UnityEngine.AndroidJNISafe.CheckException () (at <00000000000000000000000000000000>:0)
UnityEngine.AndroidJNISafe.FindClass (System.String name) (at <00000000000000000000000000000000>:0)
UnityEngine.AndroidJavaObject._AndroidJavaObject (System.String className, System.Object[] args) (at <00000000000000000000000000000000>:0)
GoogleMobileAds.Android.AppStateEventClient..ctor () (at <00000000000000000000000000000000>:0)
GoogleMobileAds.GoogleMobileAdsClientFactory.BuildAppStateEventClient () (at <00000000000000000000000000000000>:0)
GoogleMobileAds.Api.AppStateEventNotifier..cctor () (at <00000000000000000000000000000000>:0)
AdManager.Start () (at <00000000000000000000000000000000>:0)
Rethrow as TypeInitializationException: The type initializer for 'GoogleMobileAds.Api.AppStateEventNotifier' threw an exception.
AdManager.Start () (at <00000000000000000000000000000000>:0)

Mobile Ads SDK Forum Advisor

unread,
Mar 27, 2024, 4:56:28 AM3/27/24
to ferox...@gmail.com, google-adm...@googlegroups.com

Hi,

I have tried running a Google sample project with unity version(2022.3.22f1) and Mobile Ads SDK version(9.0.0) in Android 14 and unable to reproduce the issue. Could you please confirm the same from your end. Kindly provide the below information for further assistance:

  • Unity editor version
  • Mobile Ads SDK version
  • Sample project which replicates the issue (if possible) 
This message is in relation to case "ref:!00D1U01174p.!5004Q02s0Gch:ref" (ADR-00228830)

Thanks,
 
Google Logo Mobile Ads SDK Team


Maiquel Ferreira

unread,
Mar 27, 2024, 1:33:45 PM3/27/24
to Google Mobile Ads SDK Developers
Unity Version 2021.3.25f1
SDK Vewrsion 9.0.0

Mobile Ads SDK Forum Advisor

unread,
Mar 28, 2024, 3:10:23 AM3/28/24
to ferox...@gmail.com, google-adm...@googlegroups.com
Hi,

We have tried running Google sample project with mentioned Unity Version 2021.3.25f1 and Mobile Ads SDK Version 9.0.0 and able to load the ads successfully. We need detailed debug information from a device where it's observed in order to actually make any progress in diagnosing this. Kindly share a sample project which replicates the issue for further investigation.
 

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002s0GchQAE&entry.80707362=00228830

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.
 

Reply all
Reply to author
Forward
0 new messages