简体   繁体   English

关闭日志记录和调试

[英]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 PlaystorePrepare for releaseTurn 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 the android:debuggable attribute to false 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() and stopMethodTracing() 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()方法。

Turn Off Development Build on the build settings box:在构建设置框中关闭开发构建:

在此处输入图像描述

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

相关问题 关闭 ServiceStack 日志记录 - Turn Off ServiceStack Logging 关闭HttpRequestValidationException日志记录? - Turn off HttpRequestValidationException logging? 有没有办法关闭 Hangfire 对 serilog 所做的日志记录? - Is there a way to turn off logging that Hangfire does with serilog? 如何在Visual Studio 2010中关闭远程调试? - How to turn off remote debugging in Visual Studio 2010? log4net:如何关闭程序集引用的日志记录? - log4net: How to turn off logging of an assembly reference? Azure Function v4 - 如何关闭主机日志记录 - Azure Function v4 - How Turn Off Host Logging 如何在 Log4net 中关闭特定记录器的日志记录 - How to turn off logging for a specific logger in Log4net 如何关闭由 ASP.NET 核心框架完成的日志记录 - How to turn off the logging done by the ASP.NET core framework 是否可以打开/关闭.net核心中的日志记录功能,特别是serilog(将数据记录到.txt文件中) - Is there a to turn on/off the logging functionality in .net core specially the serilog(logging data into .txt file) 调试异步代码时,如何关闭蓝色时钟显示? - How can I turn off the blue clock display when debugging asynchronous code?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM