0

I am facing issue with google play service ads. I am using rev 17 version of play service in my app and using android 4.4.2 with installed play service version 4.8.20.

But getting a warning as below Google Play services out of date. Requires 4452000 but found 4325034. And ads are not displayed .

But works fine on Gingerbread device 2.3.x .

Earlier I was getting below error on kitkat and app was crashing.

java.lang.SecurityException: attempting to read gservices without permission: Neither user 10096 nor current process has com.google.android.providers.gsf.permission.READ_GSERVICES.

Than I added READ_GSERVICES permission, its not crashing but ads are not displayed because of above out of date issue.

Please suggest a solution.

Thanks.

user0011
  • 373
  • 2
  • 4
  • 15
  • possible duplicate of [java.lang.SecurityException: attempting to read gservices without permission](http://stackoverflow.com/questions/22672846/java-lang-securityexception-attempting-to-read-gservices-without-permission) – rds Sep 24 '14 at 10:08

2 Answers2

2

I solved it by adding permission to manifest file com.google.android.providers.gsf.permission.READ_GSERVICES.

Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
user0011
  • 373
  • 2
  • 4
  • 15
0

It could be an issue with your vending and gms files from the google services library.

I would suggest locating these files and then manually installing them via the adb like so:

adb -install "C:\...\...\...\com.android.vending-4452000.apk
adb -install "C:\...\...\...\com.google.android.gms-4452000.apk
AndyRoid
  • 5,062
  • 8
  • 38
  • 73
  • could not find above apk files on my system. – user0011 Jun 19 '14 at 03:02
  • See if google play services is up to date in your sdk manager, if not I would suggest using GenyMotion emulator from which you can install Google Play Services on the emulator device and then update it from the emulator – AndyRoid Jun 19 '14 at 03:26
  • open google play in your device, u will have to be online so that I would self-update itself to latest version. – Rahul Jul 23 '14 at 08:32