调试应用被Play保护阻止 [英] Debug app blocked by play protect

查看:72
本文介绍了调试应用被Play保护阻止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试安装调试应用程序时,会出现播放保护警报"并安装了该应用程序,但是当我卸载该应用程序并再次尝试安装它时,它显示了一个错误.

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.

为什么会发生此错误?

错误:Play Protect无法识别此应用的开发者.来自未知开发人员的应用有时可能不安全.

Error: Play Protect doesn't recognise this app's developer. Apps from unknown developers can sometimes be unsafe.

推荐答案

我遇到了同样的问题.我做了一些研究,发现了这一点:

I was having the same problem. I did some research and found this:

调试证书的有效期

用于对应用进行签名以进行调试的自签名证书的有效日期为自创建之日起365天.证书过期后,您将得到一个构建错误.

The self-signed certificate used to sign your app for debugging has an expiration date of 365 days from its creation date. When the certificate expires, you will get a build error.

要解决此问题,只需删除debug.keystore文件.该文件存储在以下位置:

To fix this problem, simply delete the debug.keystore file. The file is stored in the following locations:

  • 〜/.android/在OS X和Linux上
  • 在Windows XP上
  • C:\ Documents and Settings \ .android \
  • 在Windows Vista和Windows 7、8和10上
  • C:\ Users \ [用户] \.android \

下次构建并运行调试构建类型时,构建工具将重新生成新的密钥库和调试密钥.请注意,您必须运行您的应用程序,单独构建不会重新生成密钥库和调试密钥.

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.

对我有用.我的信息来源是官方的android开发人员网站: https://developer.android.com/studio/publish/app-signing

It worked for me. The source of my information is the official android developers site: https://developer.android.com/studio/publish/app-signing

这篇关于调试应用被Play保护阻止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆