Android Studio日志打印

Cannot resolve symbol 'Log'解决方法

前面加入

import android.util.Log;

Android Studio日志打印

tag一般过滤信息,写当前类名就好,msg后面是打印想要的信息

之后运行,可以在下面的logcat中看到相应日志信息

Android Studio日志打印

这是个非常不错的调试,远远好于System.out

 

相关文章: