Ad fails to load with "This app is using a lightweight version of the Google Mobile Ads SDK" error on Android

682 views
Skip to first unread message

Barış Tümerkan

unread,
Mar 4, 2021, 9:49:55 AM3/4/21
to Google Mobile Ads SDK Developers

Using GoogleMobileAds v5.4.0, Unity 2019.4.21f1, Target Android 10.0 (Testing on a Nexus with Android 6.0).

I'm not using the lightweight version of com.google.android.gms:play-services-ads as far as I can tell, and I've pressed Force Resolve many times (dependency from External Dependency Manager and logs from device below)

Any ideas for how to fix this?


** External Dependency Manager **

dependencies {
implementation 'com.google.android.gms:play-services-ads:19.5.0' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:7
implementation 'com.google.android.gms:play-services-base:17.5.0' // Assets/Firebase/Editor/AppDependencies.xml:17
implementation 'com.google.firebase:firebase-analytics:18.0.0' // Assets/Firebase/Editor/RemoteConfigDependencies.xml:15
implementation 'com.google.firebase:firebase-analytics-unity:7.0.2' // Assets/Firebase/Editor/AnalyticsDependencies.xml:18
implementation 'com.google.firebase:firebase-app-unity:7.0.2' // Assets/Firebase/Editor/AppDependencies.xml:22
implementation 'com.google.firebase:firebase-auth:20.0.0' // Assets/Firebase/Editor/AuthDependencies.xml:13
implementation 'com.google.firebase:firebase-auth-unity:7.0.2' // Assets/Firebase/Editor/AuthDependencies.xml:20
implementation 'com.google.firebase:firebase-common:19.3.1' // Assets/Firebase/Editor/AppDependencies.xml:13
implementation 'com.google.firebase:firebase-config:20.0.0' // Assets/Firebase/Editor/RemoteConfigDependencies.xml:13
implementation 'com.google.firebase:firebase-config-unity:7.0.2' // Assets/Firebase/Editor/RemoteConfigDependencies.xml:20
implementation 'com.google.firebase:firebase-messaging:21.0.0' // Assets/Firebase/Editor/MessagingDependencies.xml:13
implementation 'com.google.firebase:firebase-messaging-unity:7.0.2' // Assets/Firebase/Editor/MessagingDependencies.xml:20
implementation 'com.google.games:gpgs-plugin-support:0.10.12' // Assets/GooglePlayGames/Editor/GooglePlayGamesPluginDependencies.xml:11
}

** Logs When Initializing **

03-03 21:14:45.986 17696 17740 I Unity : Will initialize AdMob
03-03 21:14:45.986 17696 17740 I Unity : AdMobAdHelper:Setup(AdManager, Boolean)
03-03 21:14:45.986 17696 17740 I Unity : AdManager:Start()
03-03 21:14:45.986 17696 17740 I Unity :
03-03 21:14:45.986 17696 17740 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)
03-03 21:14:45.986 17696 17740 I Unity :
03-03 21:14:46.033 17696 17740 E linker : readlink('/proc/self/fd/67') failed: Permission denied [fd=67]
03-03 21:14:46.033 17696 17740 E linker : warning: unable to get realpath for the library "/system/framework/oat/arm64/com.android.location.provider.odex". Will use given name.
03-03 21:14:46.035 17696 17740 E linker : readlink('/proc/self/fd/67') failed: Permission denied [fd=67]
03-03 21:14:46.035 17696 17740 E linker : warning: unable to get realpath for the library "/system/framework/oat/arm64/com.android.media.remotedisplay.odex". Will use given name.
03-03 21:14:46.039 17696 17740 E linker : readlink('/proc/self/fd/67') failed: Permission denied [fd=67]
03-03 21:14:46.039 17696 17740 E linker : warning: unable to get realpath for the library "/data/app/com.google.android.gms-2/oat/arm64/base.odex". Will use given name.
03-03 21:14:46.148 17696 17740 I DynamiteModule: Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:204890103
03-03 21:14:46.150 17696 17740 I DynamiteModule: Selected remote version of com.google.android.gms.ads.dynamite, version >= 204890103
03-03 21:14:46.158 17696 17740 D DynamitePackage: Instantiated singleton DynamitePackage.
03-03 21:14:46.158 17696 17740 D DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraMobileAdsSettingManagerCreatorImpl

** Logs When Loading an Ad Afterwards **

03-03 21:15:01.426 17696 17696 E Ads : ### This app is using a lightweight version of the Google Mobile Ads SDK that requires the latest Google Play services to be installed, but Google Play services is either missing or out of date.
03-03 21:15:01.437 17696 17893 I Unity : AdFailedToLoad: Invalid request
03-03 21:15:01.437 17696 17893 I Unity : System.EventHandler1:Invoke(Object, TEventArgs) 03-03 21:15:01.437 17696 17893 I Unity : System.EventHandler1:Invoke(Object, TEventArgs)
03-03 21:15:01.437 17696 17893 I Unity : System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
03-03 21:15:01.437 17696 17893 I Unity : UnityEngine.AndroidJavaProxy:Invoke(String, Object[])
03-03 21:15:01.437 17696 17893 I Unity : UnityEngine._AndroidJNIHelper:InvokeJavaProxyMethod(AndroidJavaProxy, IntPtr, IntPtr)

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 4, 2021, 12:37:38 PM3/4/21
to ba...@duello.com, google-adm...@googlegroups.com
Hi Baris,

Thank you for bringing this question to our attention. To start with the Force Resolve in Unity. As of now this is how we do it also. It is how it has to be done. And while we know that it might be frustrating, there is nothing that we can do about it. Has nothing to do with the Admob SDK.

From looking at the stacktrace that you sent and also looking at Firebase, it would seem that there is a compatibility issue between the 2. Also when you look at the last firebase that is returned in the trace, you see that it is using a lower API? Unable to find if that is too low or what the difference might be. But would appear to be an issue with the Firebase and not AdMob SDK.

If you want, you can also send us via "Reply to author" button a simple sample app and we can look further into this for you.

Regards
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2DL6c9:ref

Barış Tümerkan

unread,
Mar 4, 2021, 1:03:11 PM3/4/21
to Google Mobile Ads SDK Developers
Thanks for the reply! I don't have a problem with the Force Resolve, I just meant that the resolving was not the issue :)

"Also when you look at the last firebase that is returned in the trace, you see that it is using a lower API" - Not sure what you mean by this? Unity plugin version is 7.0.2, released December 21, 2020 and the underlying Firebase SDKs are the ones that came with that, which are almost the latest ones. Also Firebase is working fine, only AdMob ads are having an issue (and even those work fine in newer Androids). 

The error message says I'm using the lightweight version of Google Mobile Ads, which would only happen if I had com.google.android.gms:play-services-ads-lite in the dependencies, as far as I can tell. Could there be another way it's using the lightweight SDK by mistake?

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 4, 2021, 3:47:48 PM3/4/21
to ba...@duello.com, google-adm...@googlegroups.com
Hi Baris,

Thank you for the response back. The answer to the lite SDK is clearly what needs to be figured out. From what you sent, I see nothing that indicates that you are using it. I see this.

implementation 'com.google.android.gms:play-services-ads:19.5.0' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:7

So you look to be using the correct SDK. What has me curious \and deals with the lower API. That I am unsure of is why do you have this then?

 
implementation 'com.google.android.gms:play-services-base:17.5.0' // Assets/Firebase/Editor/AppDependencies.xml:17

Then from that point back if we look at whats returned. We see almost all Firebase. So the question is why would it suggest an issue with AdMob lite? There would appear to be something in Unity or Firebase that might be mistaking your SDK.

Can you share with us a sample app that is able to reproduce this result?

Regards,
Message has been deleted

Barış Tümerkan

unread,
Mar 8, 2021, 8:30:30 AM3/8/21
to Google Mobile Ads SDK Developers
This got fixed after changing the Api Compatibility Level to .NET 4.x. The error message pointing to the issue being due to a lightweight version of the Google Mobile Ads SDK seems misleading though, it might be good to look at changing that.

So this issue is closed for me, thanks.

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 8, 2021, 12:23:48 PM3/8/21
to ba...@duello.com, google-adm...@googlegroups.com
Hi Baris,

Thank you for the response back and glad to hear that this appears to be resolved. I will also bring the information that you mentioned to my team to look more into and see what is happening.

BP Commend

unread,
Mar 14, 2021, 1:02:57 PM3/14/21
to Arman Syah, Mobile Ads SDK Forum Advisor Prod, Barış Tümerkan, google-adm...@googlegroups.com

शुक्र, 5 मार्च 2021, 08:07 को Arman Syah <armansy...@gmail.com> ने लिखा:

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/xa_TM000000000000000000000000000000000000000000000QPGPQY00aVE8nxWSSJiyl_gAc5-Agg%40sfdc.net.

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/CADbyvpPT_DMJTFjDFuYteaN8h_TV2aT1F2JPO1WBApv%3Diiu7%2Bw%40mail.gmail.com.

Google Mobile Ads SDK Developers

unread,
Mar 19, 2021, 3:02:15 AM3/19/21
to Google Mobile Ads SDK Developers

Reposting the last inquiry (https://groups.google.com/g/google-admob-ads-sdk/c/dmcajbrKNsY/m/n9gZacI-AgAJ) from the forum as it wasn't routed to our support queue.

Cheers,

Princess Pamela Pineda,

Mobile Ads SDK Team




Mobile Ads SDK Forum Advisor

unread,
Apr 21, 2022, 12:21:20 PM4/21/22
to ba...@duello.com, google-adm...@googlegroups.com

Hello Baris,

 

My name is Nick from the Admob team. I am looking into this case related to Android dependencies. I notice you are using an older version of the plugin. If you can, please update the plugin and try again.

 

Thanks,

Nick



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