Under the Linux Ubuntu System, ADB is not an internal command (how to make the ADB command available)

Source: Internet
Author: User

Linux
Under Ubuntu system, ADB is not an internal command
Workaround:
1, sudo gedit
~/.bashrc
2. Add the following two sentences to the file opened above
Export android_home=/home/jason/develop_sdk/android-sdk-linux_86
Export path= $PATH: $ANDROID _home/tools
The latest SDK should be changed to: $PATH: $ANDROID _homoe/platform-tools
Note: "/home/jason/develop_sdk/android-sdk-linux_86" is the path to the SDK.

Export android_home=/home/wangwei/soft_dev/android-sdk-linux_86
Export path= $PATH: $ANDROID _home/platform-tools


3, restart the computer, OK!
After restarting the computer, the command line enters the ADB command.
However, the new problem has arisen!
At this point, execute the following command at the command line (ADB does not recognize devices such as phones, my phone is like this, in Linux
Ubuntu Environment Development environment is not recognized, must execute ADB kill-server and adb kill-server command)
[Email protected]:~$
adb
Kill-server
(Kill ADB process)
[Email protected]:~$
Sudo
ADB devices
(Restart ADB)
At this point, there is an error: sudo:
Adb:command not found.
Workaround:
command line input [email protected]:~$
Sudo
-S
Via sudo
-s switch to root,
Re-enter [email protected]:~$
Type
adb
Use the Type
ADB to see the next adb with that command, at which point the command line shows
ADB is
/home/wangwei/soft_dev/android-sdk-linux_86/platform-tools/adb
Then enter the command line: [Email protected]:~$ exit
command line input [email protected]:~$ CD
/usr/bin
Enter the/usr/bin directory
command line input [email protected]:~$ rm
-RF ADB (delete the original adb)
command line input [email protected]:~$
sudo ln-s
/home/wangwei/soft_dev/android-sdk-linux_86/platform-tools/adb
sudo ln-s
Your ADB solution path
command line input [email protected]:~$
Type
adb
At this point the command line shows that the ADB is/usr/bin/adb (this will be done correctly when sudo adb
Devices command)
So the problem is solved.

Under the Linux Ubuntu System, ADB is not an internal command (how to make the ADB command available)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.