简体   繁体   English

在ubuntu中打开./uiautomatorviewer时出错

[英]Error while opening ./uiautomatorviewer in ubuntu

E/adb: error: cannot open '/tmp/adb.log': Permission denied
E/ddms: '/home/rishabhambre/Downloads/SDK/platform-tools/adb,start-server' failed -- run manually if necessary
E/adb: ADB server didn't ACK >
E/adb: * failed to start daemon *
E/adb: error: cannot connect to daemon 

There are two ways to get around this: 解决此问题的方法有两种:

1) You could restart adb as root using adb root 1)您可以使用adb root以root身份重新启动adb

2) You could try using sudo chmod 666 /tmp/adb.log 2)您可以尝试使用sudo chmod 666 /tmp/adb.log

Both ways should work, but root method is probably better than changing the permissions on the file. 两种方法都应该起作用,但是root方法可能比更改文件权限更好。

Restart your system. 重新启动系统。 Not better way, but it's helped me. 没有更好的方法,但这对我有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM