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)