您的位置:首页 > 运维架构 > Shell

adb shell ,出错 提示error: device not found

2016-01-03 21:53 363 查看
今天本想试试手,用am 工具启动一下android应用程序,然后一直提示如下错误。

C:\Windows\system32>adb shell

error: device not found

一开始认为是adb server异常或者没起来,就把server kill掉,然后重启,然后发现还是不行。

adb kill-server

adb start-server。

最后还是仔细一看,是提示没有发现设备,去把AVD设备起来(如果不知道怎样启动或者创建AVD可以 查看相关文章),果然可以了,之行am命令也成功了。

root@generic:/ # am start -n com.example.helloandriod/com.example.helloandriod.MainActivity

driod/com.example.helloandriod.MainActivity                                   <

Starting: Intent { cmp=com.example.helloandriod/.MainActivity }
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: