未在androidmanifest中声明未请求的权限-也许是crashlytics [英] unrequested permissions not declared in androidmanifest--crashlytics maybe?
问题描述
我刚刚注意到我的应用程序有新的权限请求,但我并未在AndroidManifest.xml中明确声明。我没有在gradle创建的
intermediates目录中的任何清单中声明这些声明,并且我声明的没有显式版本的唯一依赖项是crashlytics(正如他们建议的那样),即:
I've just noticed that my app has new permission requests that I have not explicitly declared in my AndroidManifest.xml. I didn't see these declared in any of the manifests in the "intermediates" directory created by gradle, and the only dependency that I declare without an explicit version is crashlytics (as they suggest to do), i.e:
编译'com.crashlytics.android:crashlytics:1。+'
compile 'com.crashlytics.android:crashlytics:1.+'
完整清单是:
<android:uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
<android:uses-permission android:name="android.permission.READ_PHONE_STATE" />
<android:uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
那么我的猜测是,无论现在有任何新版本的crashlytics都要求这样做?
So what my guess is that whatever new version of crashlytics is now requesting this?
推荐答案
如果您使用Gradle进行构建,则可以将以下内容添加到AndroidManifest.xml中以删除权限:
If you're using Gradle to build, you can add the following to your AndroidManifest.xml to remove the permission:
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />
这篇关于未在androidmanifest中声明未请求的权限-也许是crashlytics的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!