问题
I understood that it's not good practice to publish an app with logs, so i disabled all my log calls.
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?
回答1:
Luckily this has already been answered. The best thing to do is simply turn on proguard in your application.
Turn on Proguard: Turning Proguard On/Off Using Properties
Then simply add this to the proguard.cfg here:
Add to proguard.cfg: Remove all debug logging calls before publishing: are there tools to do this?
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.
Regards,
来源:https://stackoverflow.com/questions/11108078/how-to-disable-admob-logs