在 list 中未添加 android.permission.READ_PHONE_STATE。权限。
为什么我上传新的apk版本时出现错误如下。
您的应用有一个版本代码为 1 的 apk,它请求以下权限:android.permission.READ_PHONE_STATE。在 APK 中使用这些权限的应用需要设置隐私政策。
我的 list 文件。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.my.package.name">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:name=".utils.PreferenceManager"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".SplashScreen"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:screenOrientation="portrait" />
<activity
android:name=".CategoryListActivity"
android:screenOrientation="portrait" />
<activity
android:name=".ImagesActivity"
android:screenOrientation="portrait" />
</application>
</manifest>
最佳答案
您的应用的 manifest.xml 具有从您的设备访问信息的这些权限,但您在 Play 商店提交时没有隐私政策链接。所以你会收到这个警告。
如果您的应用处理个人或敏感用户数据,则需要应用的隐私政策
更新 1
Google Play 管理中心的隐私政策设置已更改位置。
在 Google Play 控制台中,
选择商店展示 → 应用内容。
根据隐私政策。
更新 2
选择最左下角的政策 → 应用内容。
根据隐私政策。
关于android - 警告您的 Apk 正在使用需要隐私政策 : (android. 权限的权限。READ_PHONE_STATE),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41234205/