[英]Turn off logging and debugging
I spent 2 days looking for a solution to this problem, but to no avail, when I try to publish my application on google play, I get this issue:我花了 2 天时间寻找解决此问题的方法,但无济于事,当我尝试在 google play 上发布我的应用程序时,我遇到了这个问题:
You have imported an APK or Android App Bundle that can be debugged.您已导入可调试的 APK 或 Android App Bundle。 For security reasons, you must disable debugging before the applicable APK or Android App Bundle can be published on Google Play.
出于安全原因,您必须先禁用调试,然后才能在 Google Play 上发布适用的 APK 或 Android App Bundle。 Learn more about APKs or Android Bundle Bundle packages for which the Debug feature has been enabled.
详细了解已启用调试功能的 APK 或 Android Bundle Bundle 软件包。
Google: "disable debugging" Google Playstore
→ Prepare for release → Turn off logging and debugging Google:
"disable debugging" Google Playstore
→准备发布→ 关闭日志记录和调试
Turn off logging and debugging
关闭日志记录和调试
Make sure you deactivate logging and disable the debugging option before you build your application for release.
确保在构建应用程序以供发布之前停用日志记录并禁用调试选项。 You can deactivate logging by removing calls to Log methods in your source files.
您可以通过删除源文件中对 Log 方法的调用来停用日志记录。 You can disable debugging by removing the
android:debuggable
attribute from the<application>
tag in your manifest file, or by setting theandroid:debuggable
attribute tofalse
in your manifest file.您可以通过从清单文件的
<application>
标记中删除android:debuggable
属性来禁用调试,或者通过在清单文件中将android:debuggable
属性设置为false
来禁用调试。 Also, remove any log files or static test files that were created in your project.此外,删除在您的项目中创建的所有日志文件或 static 测试文件。
Also, you should remove all Debug tracing calls that you added to your code, such as
startMethodTracing()
andstopMethodTracing()
method calls.此外,您应该删除添加到代码中的所有调试跟踪调用,例如
startMethodTracing()
和stopMethodTracing()
方法调用。Important : Ensure that you disable debugging for your app if using WebView to display paid for content or if using JavaScript interfaces, since debugging allows users to inject scripts and extract content using Chrome DevTools.
重要提示:如果使用WebView显示付费内容或使用 JavaScript 接口,请确保禁用应用程序调试,因为调试允许用户使用 Chrome DevTools 注入脚本和提取内容。 To disable debugging, use the
WebView.setWebContentsDebuggingEnabled()
method.要禁用调试,请使用
WebView.setWebContentsDebuggingEnabled()
方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.