Unity Build Error on adding GoogleMobileAds v8.5.1.unitypackage

317 views
Skip to first unread message

Big_Code

unread,
Aug 23, 2023, 9:55:05 AM8/23/23
to Google Mobile Ads SDK Developers
Hello,

I am using Windows 10 and Unity Editor version 2021.3.23f1.
I get build errors after installing the Google Ads Unity package. and I got some errors just after installing the package.
 
On the unity forum, someone suggested to delete the library/bee/Android folder and then force resolve and it will fix the issue. I did the same and the build was successful but it was crashing after a split second when I opened it on my mobile phone.

SError popup on build.pngbuild errors.pngScreenshots of all the errors are attached below.

Please help me I have been stuck with this for 2 days now.

errors on intalling google ads.png

Mobile Ads SDK Forum Advisor

unread,
Aug 23, 2023, 4:20:08 PM8/23/23
to singhka...@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
  • SDK Version
  • 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=5004Q00002o7dOFQAY&entry.80707362=00195116

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:_00D1U1174p._5004Q2o7dOF:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Big_Code

unread,
Aug 30, 2023, 1:57:43 AM8/30/23
to Google Mobile Ads SDK Developers

Hello,

  1. I have uploaded the sample app on the form link you provided.
  2. To replicate – I have uploaded both the unity projects one with the Google ads package installed and one without it, The without one is working fine and to replicate just install the Google ads package.
  3. App id – If you’re asking about Google ads App ID then I haven’t set up one I was just setting up and testing with test ads.
  4. SDK version - GoogleMobileAds-v8.5.1
  5. I do not have any build error but on installing the package I do get one error which I am attaching with this e-mail (Ignore the 2nd error in the photo I just created this project for sending info to you guys, it came when I copied the other project’s file to this project, it's NOT in the original project).Screenshot 2023-08-29 194843.png
For the device it crashes on every Android phone I tested it on, but I have Realme X2 pro with Android version -11. 

Big_Code

unread,
Aug 31, 2023, 8:54:56 AM8/31/23
to Google Mobile Ads SDK Developers
Update: I found the solution The issue was due to the error that came on importing the plugin (Unable to resolve reference 'UnityEditor.iOS.Extension.Xcode'. missing or incompatible with the current platform). It was coming because my editor didn't have iOS build supported so after installing that error went away, I was able to Android resolve and the error was solved and the build was stable and working fine.
Thanks for your concern.

Mobile Ads SDK Forum Advisor

unread,
Aug 31, 2023, 12:17:54 PM8/31/23
to singhka...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for your response. We're glad to know that everything is working fine now in your end. If you have any other concerns for the implementation of the Mobile Ads SDK, just kindly let us know so we can assist you. 

Reply all
Reply to author
Forward
0 new messages