Recently, I want to build an android project in centos. After JDK and Android SDK are configured, the environment variables of Java and Android are configured in/etc/profile, however, you cannot directly use the android update project command in windows.
The following situations occur:Bash: Android: Command not found
In this case, we can use the ln command to add android to the/usr/bin directory,The detailed solution is as follows::
1. Use CD/usr/bin to enter the Directory
2. Use the Ln-S-F Android SDK installation directory/tools/Android command to link android to this directory.
3. Complete. Now we can use the android command in any directory.
Therefore, you can use Bash: ant: Command not found to solve the problem.
Finally,The Linux ln command is attached.:Ln is another important command in Linux. Its function is to create a synchronization link for a file in another location.
Syntax:
1. link a file to a file ln [-f |-N] [-S] sourcefile [targetfile]
2. Link one or more files to a directoryLn [-f |-N] [-S] sourcefile... targetdirectory
Solution to Bash: XXX: Command not found in centos