Unity: Not able to build with google mobile ads

302 views
Skip to first unread message

Sai Pawan

unread,
Aug 3, 2023, 2:03:47 AM8/3/23
to Google Mobile Ads SDK Developers
I have integrated Google AdMob SDK into my unity project. And now i am trying to take a Android Build.
But my build keeps failing.

I have tried taking build in multiple unity versions: 
- Unity 2020.3.17f1
- Unity 2021.3.16f1
- unity 2022.3.0f1

But Sadly the build doesn't complete on any it fails.

Also i am receiving a common message from all my attempts. Which is "java.lang.UnsupportedOperationException: This
feature requires ASM7 See the Console for details"

I have also tried force reslove. Taking a "Clean Build"
Deleting Library and ReGenerating but nothing seems to solve.

One further Digging I have also seen this message:
"Error processing [User]\.gradle\caches\transforms-2\files-2.1\44835453e85b46a84494d9aa5a9dd305\jetified-googlemobileads-unity-runtime.jar
java.lang.UnsupportedOperationException: This feature requires ASM7"

Seems like the error is coming from this file "jetified-googlemobileads-unity-runtime"

I need a solution to solve this. Thanks for the help in advance.

I have also posted the images below:image1.pngimage2.png

Mobile Ads SDK Forum Advisor

unread,
Aug 3, 2023, 8:10:36 AM8/3/23
to sai.pix...@gmail.com, google-adm...@googlegroups.com
Hi Sai,

I tried our sample app through unity version 2022.3.5f1 and was able to build the app successfully. Could you please try the same version on your end, then let us know how it goes?
 
This message is in relation to case "ref:_00D1U1174p._5004Q2naWje:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Message has been deleted

Sai Pawan

unread,
Aug 4, 2023, 3:38:54 AM8/4/23
to Google Mobile Ads SDK Developers

image_2023_08_04T07_38_01_298Z.png

This is the issue i am facing with the new unity 

Mobile Ads SDK Forum Advisor

unread,
Aug 4, 2023, 7:17:35 AM8/4/23
to sai.pix...@gmail.com, google-adm...@googlegroups.com
Hi Sai,

Thank you for responding back? Could you kindly provide to us your project file, so we could further check the issue? You may send it to us using the steps below.

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=5004Q00002naWjeQAE&entry.80707362=00191343

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