SDK doesn't work with unity 2021.3.18f1.

111 views
Skip to first unread message

LastOfThem

unread,
Mar 3, 2023, 5:43:12 PM3/3/23
to Google Mobile Ads SDK Developers
I am using unity 2021.3.18f1 with GoogleMobileAds-v7.4.1.I've imported SDK to empty project and it works in Unity Editor , but when i build project and run it on my android device  i  get  following error in logcat:

2023.03.04 02:35:49.178 18359 18421 Error Unity AndroidJavaException: java.lang.ClassNotFoundException: com.google.android.gms.ads.AdRequest$Builder
2023.03.04 02:35:49.178 18359 18421 Error Unity java.lang.ClassNotFoundException: com.google.android.gms.ads.AdRequest$Builder
2023.03.04 02:35:49.178 18359 18421 Error Unity at java.lang.Class.classForName(Native Method)
2023.03.04 02:35:49.178 18359 18421 Error Unity at java.lang.Class.forName(Class.java:454)
2023.03.04 02:35:49.178 18359 18421 Error Unity at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
2023.03.04 02:35:49.178 18359 18421 Error Unity at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
2023.03.04 02:35:49.178 18359 18421 Error Unity at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)
2023.03.04 02:35:49.178 18359 18421 Error Unity at android.os.Handler.dispatchMessage(Handler.java:102)
2023.03.04 02:35:49.178 18359 18421 Error Unity at android.os.Looper.loop(Looper.java:246)
2023.03.04 02:35:49.178 18359 18421 Error Unity at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)


How to solve it?

Mobile Ads SDK Forum Advisor

unread,
Mar 6, 2023, 4:53:42 AM3/6/23
to mur...@gmail.com, google-adm...@googlegroups.com
Hello,

Thank you for reaching out to us.

For us to properly troubleshoot your issue, kindly provide us the following information below privately:
  • Sample App
  • Steps to replicate
  • App ID
  • Complete Stack Trace Error
  • Device name and versions affected
You can provide the following details via reply privately to author option or directly provide it to the link below.
 

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=5004Q00002jVv2LQAS&entry.80707362=00169637

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.

Regards,
Google Logo Mobile Ads SDK Team


 

ref:_00D1U1174p._5004Q2jVv2L:ref
Reply all
Reply to author
Forward
0 new messages