(OK) android update sdk - virtualbox nat port forwarding adb "device offline"


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
virtualbox nat port forwarding adb "device offline"
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
http://stackoverflow.com/questions/14993855/android-adb-device-offline-cant-issue-commands?rq=1

[root@localhost tools]# pwd
/opt/android-on-linux/android-sdk-linux/tools
[root@localhost tools]#
[root@localhost tools]# ./android update adb
adb has been updated. You must restart adb with the following commands
    adb kill-server
    adb start-server
    adb version
[root@localhost tools]#
    ./android update adb
    ./android update sdk --no-ui

Run these commands
    adb kill-server
    android update sdk --no-ui
    adb start-server
To verify that it worked, run 'adb version' before and after the commands and make sure it is the latest. The reason for the adb kill-server command is that it it most likely running, and it can't be updated while it is running, so you have to kill it first.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
posted @ 2016-06-28 23:33  张同光  阅读(103)  评论(0编辑  收藏  举报