Google Play services is missing

1,300 views
Skip to first unread message

g4704...@gmail.com

unread,
Oct 31, 2015, 11:30:56 PM10/31/15
to Google Mobile Ads SDK Developers

I set up a project with admob as this tutorial say, but got no ads shown.

Here is my log (level: info):

11-01 11:11:45.530 4852-4852/com.xxx W/GooglePlayServicesUtil: Google Play services is missing.
11-01 11:11:45.530 4852-4852/com.xxx I/Ads: Starting ad request.
11-01 11:11:45.720 4852-5079/com.xxx W/ApplicationContext: Unable to create cache directory
11-01 11:11:45.750 4852-5089/com.xxx I/Ads: Not on service, return
11-01 11:11:45.780 4852-4900/com.xxx E/OSNetworkSystem: OSNetworkSystem_connect fail result:-111
11-01 11:11:45.790 4852-4900/com.xxx E/OSNetworkSystem: OSNetworkSystem_connect fail result:-111
11-01 11:11:45.790 4852-4900/com.xxx E/OSNetworkSystem: OSNetworkSystem_connect fail result:-111
11-01 11:11:55.800 4852-5089/com.xxx W/Ads: There was a problem getting an ad response. ErrorCode: 0
11-01 11:11:55.800 4852-4852/com.xxx W/Ads: Failed to load ad: 0

And settings:

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.xxx"
minSdkVersion 9
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.0'
compile 'com.google.android.gms:play-services-ads:8.1.0'
}

What should I do?

Vu Chau (MobileAds SDK Team)

unread,
Nov 2, 2015, 5:00:31 PM11/2/15
to Google Mobile Ads SDK Developers
Hi there,

From the log it seems we're getting complaints that Google Play services is missing. That should not be possible because you already have the com.google.android.gms:play-services-ads:8.1.0 line as a Gradle dependency, which should take care of integrating the Play services library into your app.

Just so I get more context:
  1. Are you able to replicate the problem when compiling and running our sample app?  If your implementation differs, what are the notable differences (you can post code snippets to demonstrate them)?
  2. Are there any network problems at the time of the ad request?
Thanks,

Vu Chau
Mobile Ads SDK Team
Reply all
Reply to author
Forward
0 new messages