Skip to content Skip to sidebar Skip to footer

Could Not Find Com.google.ads.adactivity

^ there is the image so you know I'm using sdk 3.2. There is more to this code, but basically this is everything for my java code inside my main one, and it doesn't load my ads wh

Solution 1:

Look in the logcat for anything with the Tag Ads. Specifically, look for something like:

Ad Request successful, but no ad returned due to lack of inventory.

It is possible that you are not getting ads back because AdMob cannot fill an ad.

There are a couple of things to note here. AdRequest.setTesting(true), which only used to set test mode for emulators, is deprecated in favor of AdRequest.addTestDevice(AdRequest.TEST_EMULATOR) for setting test mode on an emulator. For setting a test device, the device id you are supposed to enter is a hashed device id, which you can find in the logcat as well if you are debugging on your device.

Finally, the picture that you're using shows you have the SDK included for a ButtonMasher app, but the code you provided looks like it's for a Letter Learning app. Make sure you are indeed using 4.3.1 in this app.

Solution 2:

The Google AdMob Ads SDK for Android requires Android 1.5 or later. Make sure you have the latest copy of the Android SDK and that you're compiling against at least Android v3.2 (set target in default.properties to android-13).

So take android v3.2 as your target version for the latest copy (as your manifest file suggest that you have taken the latest one).

For more details please have a look on this

Hope this will help you.

Post a Comment for "Could Not Find Com.google.ads.adactivity"