开发者

Cannot run adb from terminal in Ubuntu

开发者 https://www.devze.com 2023-01-31 13:41 出处:网络
I am new to Ubuntu. I cannot run adb in my terminal. When I try to run adb in the terminal I get the following error:

I am new to Ubuntu. I cannot run adb in my terminal. When I try to run adb in the terminal I get the following error:

No command 'adb' fo开发者_JAVA百科und

At the same time I can run my Android application in the emulator. What can be the problem?


That means adb is not in the PATH.

If adb is in the current directory, try ./adb instead.

the following command will show you the PATH: echo $PATH


The command adb isn't on your path.

If you installed Android SDK manually, go to SDK install directory, then platform-tools. adb should be there.

If you didn't install the SDK at all, well, there's your problem.


Try:

sudo apt-get install android-tools-adb

Everything will be done for you .


The adb application is 32 bit, trying to run it on a 64 bit machine wont work until you have installed the 32 bit libraries, you can grab them by typing:

sudo apt-get install ia32-libs

Quite a big download but should get you up and running!


Even if I am in the platform-tools where the adb file is there I am giving ./adb still its telling command not found .


Drag and drop adb file to terminal. You can execute one command at a times, if you want next command to be executed

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号