简体   繁体   English

java.lang.SecurityException:试图未经许可读取 gservices

[英]java.lang.SecurityException: attempting to read gservices without permission

I have recently changed from adMob 6.4.1 to Google Play Services rev 15 and have just received notice of a new crash report that I do not understand:我最近从adMob 6.4.1更改为 Google Play Services rev 15并且刚刚收到一个我不明白的新崩溃报告的通知:

java.lang.SecurityException: attempting to read gservices without permission: Neither user 10158 nor current process has com.google.android.providers.gsf.permission.READ_GSERVICES.
at android.os.Parcel.readException(Parcel.java:1425)
at android.os.Parcel.readException(Parcel.java:1379)
at xs.a(SourceFile:133)
at xo.a(SourceFile:133)
at xo.a(SourceFile:118)
at ud.d(SourceFile:88)
at ud.b(SourceFile:129)
at ua.a(SourceFile:239)
at ua.a(SourceFile:176)
at aas.a(SourceFile:118)
at abz.run(SourceFile:14)
at acb.run(SourceFile:30)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:856)

I did some research, and all the results are either outdated, or are related to Google+ / Google Maps, neither of which I use in the app.我做了一些研究,所有的结果要么已经过时,要么与 Google+ / Google 地图相关,我在应用程序中都没有使用这两个。

I've never read anywhere in the GPS Developer guide for adMob that I needed to add the READ GSERVICES permission...我从未在 adMob 的 GPS 开发人员指南中阅读过任何需要添加READ GSERVICES权限的地方...

Anyone know what this is about?有谁知道这是关于什么的?

This issue was introduced with the latest release of the Google Play Services (v4.3) on the android devices. 这个问题是在Android设备上最新发布的Google Play服务(v4.3)中引入的。 Google is aware about it and it will be fixed in a future version (not the next one...) 谷歌已经意识到这一点,它将在未来版本中修复(不是下一个版本......)

https://groups.google.com/forum/#!topic/google-admob-ads-sdk/sePctoDJbRg%5B101-125-false%5D https://groups.google.com/forum/#!topic/google-admob-ads-sdk/sePctoDJbRg%5B101-125-false%5D

我不会声称这是答案,因为我在安装Android后也停止了(完全)并重新启动了Android Studio,这可能是真正的解决方案,但广告在模拟器和USB上运行正常连接7“平板电脑,然后我开始收到此错误。检查我的SDK包,我注意到没有安装Google Web Driver(这在以前不是问题) - 所有其他组件都是(除了USB驱动程序,这是不需要的)在Mac上)。我安装了这个组件,停止了(完全)并重新启动了Android Studio,广告又开始运行而没有再出错。无论如何,这是尝试的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM