adb command not found in linux environment

2019-01-13 04:07发布

While implementing the BluetoothChat application .apk inside G1 device, it always pops up a message:

$adb install -r /home/parveen/workspace/BluetoothChat/bin/BluetoothChat.apk 
-bash: adb: command not found

I am not getting clearly why this error is popping up every time. Please help me.

Thanks in advance. Praween

标签: android adb
18条回答
家丑人穷心不美
2楼-- · 2019-01-13 04:58

I was getting this error also and Ubuntu suggested me to install it so I installed* it and this worked in my case.
* - sudo apt-get install android-tools-adb

Note:x64 architecture

查看更多
我想做一个坏孩纸
3楼-- · 2019-01-13 04:59

In my case "adb" is located in "~/Android/Sdk/platform-tools/"

the following command solved the problem:

export PATH=$PATH:~/Android/Sdk/platform-tools/
查看更多
戒情不戒烟
4楼-- · 2019-01-13 05:00

sudo apt install adb

in your pc adb not installed.

Try this, working for me

查看更多
We Are One
5楼-- · 2019-01-13 05:00

I have same problem as you. finally as i know, in linux & mac OS, we use ./adb instead of adb

查看更多
6楼-- · 2019-01-13 05:00

In Ubuntu i could run the following command:

  sudo apt install android-tools-adb
查看更多
家丑人穷心不美
7楼-- · 2019-01-13 05:03

You need to add $ANDROID_SDK/platform-tools to your PATH, where $ANDROID_SDK is wherever you installed the Android SDK.

查看更多
登录 后发表回答