如何禁用AdMob的日志?

编程入门 行业动态 更新时间:2024-10-09 06:23:55
本文介绍了如何禁用AdMob的日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的理解,这不是很好的做法,发布与日志的应用程序,所以我禁用了所有我的日志的电话。

I understood that it's not good practice to publish an app with logs, so i disabled all my log calls.

现在AdMob的记录每次显示广告的时候,我怎么能取消?我似乎没有找到有关这一主题的文档中的任何信息,我读过您可以使用 ProGuard的但是,似乎是一个不好的解决办法。

Now AdMob logs every time an ad is displayed, How can i cancel that? i don't seem to find any information about this topic in the documentation, and i've read that you can use ProGuard but that seems like a bad solution.

是不是有某种方式来禁用第三方日志?

Isn't there someway to disable 3rd party logs?

推荐答案

幸运的是,这已经回答了。做最好的方法是只需打开ProGuard的应用程序中。

Luckily this has already been answered. The best thing to do is simply turn on proguard in your application.

打开Proguard的:打开Proguard的开/关使用属性

Turn on Proguard: Turning Proguard On/Off Using Properties

然后,只需将它添加到这里proguard.cfg:

Then simply add this to the proguard.cfg here:

添加到proguard.cfg:Deactivate任何电话发布之前登录:是否有工具来做到这一点

Add to proguard.cfg: Deactivate any calls to Log before publishing: are there tools to do this?

一Proguard的是,你添加到proguard.cfg,你可以简单地导出签名的应用程序,它就会消失。我只是这个昨天的测试。

One Proguard is on and you add that to the proguard.cfg, you can simply export the signed application and it will be gone. I just tested this yesterday.

问候,

更多推荐

如何禁用AdMob的日志?

本文发布于:2023-11-25 21:26:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1631407.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:日志   AdMob

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!