在清单中未添加 android.permission.READ_PHONE_STATE。允许。
为什么在我上传新的 apk 版本时会出现错误,错误如下。
您的应用有一个版本代码为 1 的 apk,它请求以下权限:android.permission.READ_PHONE_STATE。在 APK 中使用这些权限的应用需要设置隐私政策。
我的清单文件。
<?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>
原文由 Jiks 发布,翻译遵循 CC BY-SA 4.0 许可协议
您的应用的 manifest.xml 具有从您的设备访问信息的这些权限,但您在 Play 商店提交时没有隐私政策链接。所以你得到这个警告。
需要应用程序的隐私政策 如果您的应用程序处理个人或敏感用户数据
将隐私政策添加到应用的商品详情中有助于让您了解如何处理敏感的用户和设备数据。
更新 1
Google Play 管理中心的隐私政策设置已更改位置。
在 Google Play 控制台中,
选择 商店状态 → 应用内容。
根据 隐私政策。
更新 2
选择最左下角的 策略 → 应用程序内容。
根据 隐私政策。