unity android设备上查看log输出

使用[adb] logcat [option] … [filter-spec] … 命令。

1. -s 指定过滤器

adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG

2. 如果出现error: more than one device/emulator,需要adb -s deviceName指定设备,

adb devices 得到设备名 MyAndroid
adb -s MyAndroid logcat -s Unity 

3. -f 输出log到指定文件

adb -s deviceName logcat -s Unity  -f c:\unity_log.txt

你可能感兴趣的:(Unity挖掘机)