简体   繁体   English

调试被播放保护阻止的应用程序

[英]Debug app blocked by play protect

When trying to install a debugging application, "Playback Protection Alert" appears and the application is installed, but when I uninstalled the application, and try again to install it, it shows me an error.尝试安装调试应用程序时,会出现“播放保护警报”并安装了该应用程序,但是当我卸载该应用程序并再次尝试安装时,它显示一个错误。

Why did this error happen?为什么会发生这个错误?

Error: Play Protect doesn't recognise this app's developer.错误:Play Protect 无法识别此应用的开发者。 Apps from unknown developers can sometimes be unsafe.来自未知开发者的应用有时可能不安全。

I was having the same problem.我遇到了同样的问题。 I did some research and found this:我做了一些研究,发现了这个:


Expiry of the debug certificate调试证书到期

The self-signed certificate used to sign your app for debugging has an expiration date of 365 days from its creation date.用于对您的应用进行签名以进行调试的自签名证书的有效期为自创建之日起 365 天。 When the certificate expires, you will get a build error.当证书过期时,您将收到构建错误。

To fix this problem, simply delete the debug.keystore file.要解决此问题,只需删除 debug.keystore 文件即可。 The file is stored in the following locations:该文件存储在以下位置:

  • ~/.android/ on OS X and Linux ~/.android/在 OS X 和 Linux 上
  • C:\\Documents and Settings\\.android\\ on Windows XP C:\\Documents and Settings\\.android\\在 Windows XP
  • C:\\Users\\[user]\\.android\\ on Windows Vista and Windows 7, 8, and 10 C:\\Users\\[user]\\.android\\在 Windows Vista 和 Windows 7、8 和 10 上

The next time you build and run the debug build type, the build tools will regenerate a new keystore and debug key.下次构建和运行调试构建类型时,构建工具将重新生成新的密钥库和调试密钥。 Note that you must run your app, building alone does not regenerate the keystore and debug key.请注意,您必须运行您的应用程序,单独构建不会重新生成密钥库和调试密钥。


It worked for me.它对我有用。 The source of my information is the official android developers site: https://developer.android.com/studio/publish/app-signing我的信息来源是官方android开发者站点: https : //developer.android.com/studio/publish/app-signing

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

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