Admob (Test Ad Not Loading) AndroidJavaException: java.lang.ClassNotFoundException: com.google.unity.ads.UnityRewardedAdCallback

19 views
Skip to first unread message

Samir Is Sad

unread,
Oct 28, 2024, 9:29:58 AMOct 28
to Google Mobile Ads SDK Developers

Hello, i have implemented admob before in my other games, but never seen this issue…

im using my app id in the GMD Setting and i have tried using my Own Rewarded + Test Ad Id… none of them work… the ads dont load at all… my admob account is okay & i have other games using it…

here is the full log:

2024/10/20 23:02:26.896 30616 30650 Error Unity AndroidJavaException: java.lang.ClassNotFoundException: com.google.unity.ads.UnityRewardedAdCallback //-------------AD Mob..... hehh.. 2024/10/20 23:02:26.896 30616 30650 Error Unity java.lang.ClassNotFoundException: com.google.unity.ads.UnityRewardedAdCallback 2024/10/20 23:02:26.896 30616 30650 Error Unity at java.lang.Class.classForName(Native Method) 2024/10/20 23:02:26.896 30616 30650 Error Unity at java.lang.Class.forName(Class.java:454) 2024/10/20 23:02:26.896 30616 30650 Error Unity at com.unity3d.player.UnityPlayer.nativeRender(Native Method) 2024/10/20 23:02:26.896 30616 30650 Error Unity at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0) 2024/10/20 23:02:26.896 30616 30650 Error Unity at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95) 2024/10/20 23:02:26.896 30616 30650 Error Unity at android.os.Handler.dispatchMessage(Handler.java:102) 2024/10/20 23:02:26.896 30616 30650 Error Unity at android.os.Looper.loop(Looper.java:223) 2024/10/20 23:02:26.896 30616 30650 Error Unity at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20) 2024/10/20 23:02:26.896 30616 30650 Error Unity Caused by: java.lang.ClassNotFoundException: com.google.unity.ads.UnityRewardedAdCallback 2024/10/20 23:02:26.896 30616 30650 Error Unity ... 8 more 2024/10/20 23:02:26.896 30616 30650 Error Unity at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0 2024/10/20 23:02:26.896 30616 30650 Error Unity at UnityEngine.AndroidJNISafe.FindClass (System.String name) [0x00000] in <00000000000000000000000000000000>:0 2024/10/20 23:02:26.896 30616 30650 Error Unity at UnityEngine.AndroidJavaClass._AndroidJavaClass (System.String classNa 2024/10/20 23:02:28.270 30616 30616 Error chromium [ERROR:aw_browser_terminator.cc(166)] Renderer process (30895) crash detected (code -1). 2024/10/20 23:02:46.439 30616 30833 Info TRuntime.CctTransportBackend Making request to: https://firebaselogging.googleapis.com/v0cc/log/batch?format=json_proto3

the main problem is AndroidJavaException: java.lang.ClassNotFoundException: com.google.unity.ads.UnityRewardedAdCallback… i dont know how to fix this…

Environment:

  • Unity 2021 LTS
  • Admob v9.2.1
  • Test ad id + Real Ad Id

What I Have Tried:

  • Reimporting the .unityPackage.
  • Locating the .aar file(its there)
  • Force Resolve + Resolve…

i have my game published in play store… i need help as soon as possible… :cry::cry:

i cant reproduce it


Samir Is Sad

unread,
Oct 28, 2024, 9:30:01 AMOct 28
to Google Mobile Ads SDK Developers

i dont know how to reproduce it...

Mobile Ads SDK Forum Advisor

unread,
Oct 28, 2024, 4:17:46 PMOct 28
to samir...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support team.

For test ads, you can refer to Enabling test ads and you can also add your test device programmatically or Add your test device in the AdMob UI. Make sure you replace these test IDs with your own ad unit ID before publishing your app.

Could you confirm whether the mentioned issue is reproducible in our sample project? If yes, kindly provide the below information so we can gain full visibility of your implementation:

  • Sample project reproducing the issue
  • The full stack trace

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 via reply to author option or 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=5004Q00002vGh0aQAC&entry.80707362=00273609

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.

This message is in relation to case "ref:!00D1U01174p.!5004Q02vGh0a:ref" (ADR-00273609)

Thanks,
 
Google Logo Mobile Ads SDK Team


Reply all
Reply to author
Forward
0 new messages