Android出现错误 adb: command not found

  次阅读 作者:智能小宝 来源:互联网 2016-01-14 12:45 我要评论(0)

新安装Ubuntu ,第一次安装android SDK,输入命令后出现not found.

~$ adb

No command 'adb' found, did you mean:

Command 'cdb' from package 'tinycdb' (main)

Command 'gdb' from package 'gdb' (main)

Command 'dab' from package 'bsdgames' (universe)

Command 'zdb' from package 'zfs-fuse' (universe)

Command 'mdb' from package 'mono-debugger' (universe)

Command 'kdb' from package 'elektra-bin' (universe)

Command 'tdb' from package 'tads2-dev' (multiverse)

Command 'pdb' from package 'python' (main)

Command 'jdb' from package 'openjdk-6-jdk' (main)

Command 'ab' from package 'apache2-utils' (main)

Command 'ad' from package 'netatalk' (universe)

adb: command not found

没有配置,需进行配置。

vim .bashrc

然后添加下面内容:

export ANDROID_HOME=/home/jerikc/tools/android/android-sdk-linux

export PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools

然后运行

. .bashrc

$ adb

Android Debug Bridge version 1.0.29

-d- directs command to the only connected USB device

returns an error if more than one USB device is present.

-e- directs command to the only running emulator.

returns an error if more than one emulator is running.

-s <serial number>- directs command to the USB device or emulator with

the given serial number. Overrides ANDROID_SERIAL

environment variable.

-p <product name or path>- simple product name like 'sooner', or

a relative/absolute path to a product

out directory like 'out/target/product/sooner'.

If -p is not specified, the ANDROID_PRODUCT_OUT

environment variable is used, which must

be an absolute path.

devices- list all connected devices

connect <host>[:<port>]- connect to a device via TCP/IP

Port 5555 is used by default if no port number is specified.

disconnect [<host>[:<port>]]- disconnect from a TCP/IP device.

Port 5555 is used by default if no port number is specified.

Using this command with no additional arguments

will disconnect from all connected TCP/IP devices.

device commands:

adb push <local> <remote>- copy file/dir to device

adb pull <remote> [<local>]- copy file/dir from device

adb sync [ <directory> ]- copy host->device only if changed

(-l means list but don't copy)

(see 'adb help all')

本站文章信息来源于网络以及网友投稿,本站只负责对文章进行整理、排版、编辑,是出于传递更多信息之目的,并不意味着赞同其观点或证实其内容的真实性。如果您有什么意见或建议,请联系QQ28-1688-302!

人工智能实验室
相关文章相关文章
  • 英国研发“杀生”机器人 通过生命体获取能量

    英国研发“杀生”机器人 通过生命体获取能量

  • 未来两年人工智能要怎么走?看这篇就够了

    未来两年人工智能要怎么走?看这篇就够了

  • 韩春雨称已能重复实验结果 近期将有消息公布

    韩春雨称已能重复实验结果 近期将有消息公布

  • 无人驾驶汽车如何改变城市生活?听听他们怎么说

    无人驾驶汽车如何改变城市生活?听听他们怎么说

网友点评网友点评
阅读推荐阅读推荐

据国外媒体报道,在过去两年内,聊天机器人(chatbot)、人工智能以及机器学习的研发和采用取得了巨大进展。许多初创公司正利用人工智能和...

霍金 视觉中国 图 英国著名物理学家霍金(Stephen Hawking)再次就人工智能(AI)发声,他认为:对于人类来说,强大AI的出现可能是最美妙的...

文|郑娟娟 今年,人工智能(AI) 60岁了。在AI60岁的时候,笔者想要介绍一下AI100,一个刚刚2岁的研究项目,但它的预设寿命是100年,甚至更长...

AlphaGo与李世石的人机大战,为大众迅速普及了人工智能的概念。 但对谷歌而言,除了下围棋,现在的人工智能进展到哪一步了?未来,人工智能...