Admob Unity for iOS problem

291 views
Skip to first unread message

Ramsay Amarin

unread,
Apr 11, 2016, 9:09:26 AM4/11/16
to Google Mobile Ads SDK Developers
I want to build my Unity 5.3 game for iOS. I have downloaded the latest admob plugin and entered the symbol NO_GPGS to 'Scripting Define Symbol' to disable google play services which I use for the android version of the game. In Unity editor I get the following error:

Google.JarResolver.ResolutionException: Cannot find candidate artifact for com.google.android.gms:play-services-ads:LATEST
  at Google.JarResolver.PlayServicesSupport.LoadDependencies (Boolean allClients) [0x00000] in <filename unknown>:0 
  at Google.JarResolver.PlayServicesSupport.CreateInstance (System.String clientName, System.String sdkPath, System.String settingsDirectory) [0x00000] in <filename unknown>:0 
  at AdMobDependencies..cctor () [0x0000a] in /Users/ramsayamarin/Desktop/Popcorn/Assets/PlayServicesResolver/Editor/AdMobDependencies.cs:14 
UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

I have searched all over and have not found any solution. Any help would be appreciated. Thank you.

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Apr 11, 2016, 9:22:15 AM4/11/16
to Google Mobile Ads SDK Developers
Hi Ramsey,

The Mobile Ads plugin depends on Google Play Services and you have to enable this for the plugin to work. Also make sure that your Android SDK has the Google Play Services library.

Thanks,
Veer Busani
Mobile Ads SDK Team

Ramsay Amarin

unread,
Apr 11, 2016, 9:57:52 AM4/11/16
to Google Mobile Ads SDK Developers
Thanks for the quick response. Admob's Unity doc page only lists 'Unity 4 or higher' as the requirement for Admob to work, where Android SDK and GPS is only required for Android, but anyways I removed the NO_GPGS symbol, downloaded Android Studio and downloaded a bunch off Android SDK Manager such as SDK 6.0 and Support Repo, Google Play Services, Support Library, SDK and platform tools and so on, and I still get the same exact error.

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Apr 11, 2016, 10:06:48 AM4/11/16
to Google Mobile Ads SDK Developers
Hi Ramsey,

This would mean that Unity is still unable to locate your Android SDK. In Unity goto Preferences -> External Tools -> Android SDK and make sure that it is pointing to the right path of the downloaded Android SDK. Then open this path and in the tools folder open Android.exe (run with Terminal). This would open up the Android SDK Manager. Just make sure that you have Google Play Services and Google Support Library and try to build again.

Thanks,
Veer Busani
Mobile Ads SDK Team

Ramsay Amarin

unread,
Apr 12, 2016, 8:55:53 AM4/12/16
to Google Mobile Ads SDK Developers
Thank you very much, that fixes it! but I had to download unity again and install it with Android build option enabled to make the SDK field appear, even though I do not need to build for Android.

Bash

unread,
Apr 24, 2016, 1:39:56 PM4/24/16
to Google Mobile Ads SDK Developers
hi i have the same problem i have the google play services library installed and my sdk located in unity why am i still getting this error!?

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Apr 25, 2016, 1:13:16 PM4/25/16
to Google Mobile Ads SDK Developers
Hi there,

Would you be able to elaborate what your exact issue is? Are you building for Android or iOS? You can follow the guidelines here for both Android and iOS. Also once you have imported the Mobile Ads plugin, I would suggest you to right click on your Assets -> Play Services Resolver folder and select Google Play Services -> Resolve Client JARS. This must fix your issue.

Thanks,
Veer Busani
Mobile Ads SDK Team


Reply all
Reply to author
Forward
0 new messages