GAME CLOSING ON ANDROID 13 AND 14.

119 views
Skip to first unread message

Rafael Lucas

unread,
Mar 26, 2024, 9:41:00 PM3/26/24
to Google Mobile Ads SDK Developers
GAME CREATED IN UNITY CLOSING ON ANDROID 13 AND 14 AFTER ADDING GOOGLE MOBILE ADS TO THE PROJECT.

ERROR CONSOLE:
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:59:52 AM3/27/24
to rafaelluc...@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. 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.!5004Q02s0Gci:ref" (ADR-00228832)

Thanks,
 
Google Logo Mobile Ads SDK Team


Reply all
Reply to author
Forward
0 new messages