问题描述
我的Android应用程序中有很多Log.d(),当最终用户将手机连接到计算机时,他们能够使用logcat看到这些日志吗?还是在发布版本中剥离这些日志?
解决方法
通常的方法是登录。
您可以使用木材或参考此方法
https://stackoverrun.com/ko/q/2720163
,对于发行版,用户将无法使用logcat查看日志,因为在android:debuggable
标签内的清单中,发行版false
的值设置为<application>
。告知是否可以调试应用程序。
开发者必须在发布应用之前删除android日志。
查看有关此操作的信息。 How to remove all debug logging calls before building the release version of an Android app?