错误信息:
为什么会出现这个错误?解决方案是什么?Play Protect不认识此应用程序的开发者。来自未知开发者的应用程序有时可能不安全。
为什么会出现这个错误?解决方案是什么?Play Protect不认识此应用程序的开发者。来自未知开发者的应用程序有时可能不安全。
有三种方法可以消除这个警告:
尝试创建一个新的密钥库并替换旧的,然后重新构建一个新的已签名APK。
更新:请注意,如果您正在使用与服务器的http连接,则应使用SSL。
请查看:https://developer.android.com/distribute/best-practices/develop/understand-play-policies
通过你的密钥库,Google Play可以找到你作为开发者。
当你生成新的密钥库时,可能会因你所在的国家IP被谷歌封禁而发生问题。
更改你的IP地址并生成新的密钥库,问题将得到解决。
如果你没有成功,可以在Android Studio中使用另一个Gmail帐号并生成新的密钥库。
如果您不想在Google Play上上传应用程序,并且临时需要解决此问题,我为其他仍在寻找解决方案的人添加了此答案。
Google提供了安全设备验证API,您只需要在应用程序中调用一次,之后您的应用程序将不会被Play Protect阻止:
以下是链接:
https://developer.android.com/training/safetynet/attestation#verify-attestation-response
示例代码项目链接:
我唯一可用的解决方案是使用Java Keytool在命令行上生成一个 .keystore
文件,然后使用该文件对我的应用程序进行签名。
您可以在此目录中找到Java Keytool: C:\Program Files\Java\jre7\bin
打开命令窗口并切换到该目录,输入以下命令:
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
Keytool会提示您为密钥库、您的姓名、公司等提供密码。请注意,在最后一个提示中,您需要输入yes。
然后,它将在您所在的目录中生成名为my-release-key.keystore的文件作为密钥库。密钥库和密钥受到您输入的密码的保护。密钥库包含一个单一密钥,有效期为10000天。别名是您稍后用来签署应用程序时引用此密钥库的名称。
有关Keytool的更多信息,请参阅文档:http://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html
有关签署Android应用程序的更多信息,请访问此处:http://developer.android.com/tools/publishing/app-signing.html
如果您正在使用像Google Analytics
或Amplitude
这样的跟踪器,并且您尝试在除Google Play
之外的其他平台上发布应用程序,则用户会遇到此错误。因此,有两种可能的解决方案:
Google Play
上。这是由于调试证书过期导致的问题,只需删除位于debug.keystore
位置的文件即可。
C:\Users\.android\
在此之后构建您的项目,构建工具将重新生成一个新的密钥,然后它将正常工作。 以下是参考资料:
https://developer.android.com/studio/publish/app-signing
没有非常精确的方法来解决这个问题,但以下任务可以有效地解决问题。
Click Invalid Caches/Restart
Do the login process of Android Studio
Click generate signed Bundle / APK
Fill in all the "generate signed Bundle" information completely.
Do not use the same password. Make sure your passwords are different in "generate signed Bundle" different. Preferably enter the address of America with the code 01
It is probably sensitive to Persian, so it is better not to write in Persian in the program. Write the program menu in English and make it Persian in the next updates
Remove extra permissions
Finally, go to the site below and request a troubleshooting https://support.google.com/googleplay/android-developer/answer/2992033?hl=en
Fill in the first and last name correctly
Upload the installation file, for example, in Dropbox, and copy the link
If you are using Dropbox, be sure to change the number zero at the end of the link to one, then submit it or use link shortening sites.
If your request is not approved, shorten the link of the installation file, for example, using the https://bit.ly site
In the description section, explain the problem. For your convenience, I will leave a sample text for you :
Greetings to the esteemed Google Team
I am sending this request to fix the "Blocked by Pay Protect" error
****{Write your app info and your reasons}****
Fast, simple, free and lightweight, no annoying ads ,This app does not collect and store user data!
Also, no unnecessary cost is imposed on the user and is completely free , It
also certifies that this app does not harm user privacy and is not harmful to users
Thank you
If you did not receive the confirmation email, repeat the request again a few days later
我通过根据签名证书详细信息更改应用程序包名称来解决了这个问题。起初,我使用的是com.foo.xyz创建的应用程序,但我的证书组织是'bar'。因此,我将包名称更改为com.bar.xyz,现在没有谷歌播放保护警告了!