我在windows系统上打开一个cmd,然后输入" adb shell am instrument -w com.demo.uia.test/android.support.test.runner.AndroidJUnitRunner"运行android测试.
我想在运行测试时在cmd中打印日志,有谁能告诉我如何编写代码来打印日志?我已经绑system.out.println("xx")和Log.i("xx","xx"),但它是无用的.
我想在cmd行中显示日志,而不是在logcat中.我现在解决了这个问题,使用sendStatus api.