我想知道我的Android应用程序的错误检查应用程序的日志得到错误,所以我试图用的logcat看到它的日志,并按照这些步骤: -同时使用logcat的在Linux中
You need to use adb server.
1. Connect your android with your laptop/pc
2. Go to developer options and turn on the stay awake and USB debugging options. (Your phone)
3. In your terminal, type "sudo adb kill-server" and then "sudo adb start-server".
4. Type "adb devices" (this should give list of devices connected)
List of devices attached
you_device_name device
5. "cd" to your folder where you have made your build.
6. Type "buildozer android debug deploy run logcat > logcat.txt"
this saves the logs (for the entire process) in a file logcat.txtx in the same folder and also deploys you app on the phone.
Go through it and find your error.
7. keep your phone awake.(do not lock it).
但是,当我跑的第6步,每次谈到它说: -
error: device 'adb' not found
- waiting for device -
我已经在互联网上搜索了很多次,当最后我张贴在这里得到解决
+0
不要Downvote如果有人不知道该解决方案 –
+0
什么,当你运行'亚行devices'发生什么呢?您的设备是否使用正确的权限检测?你可以请发布输出吗? –
+0
@SrinivasSuresh这是结果: - 根@卡莉:〜#ADB设备 连接 *守护程序没有运行的设备的清单。现在从端口5037开始* *守护进程已成功启动* efeb26190903 \t设备 –
如果觉得《linux logcat阻塞 同时使用logcat的在Linux中》对你有帮助,请点赞、收藏,并留下你的观点哦!