the command is incorrect. When you have completed the previous commands you are still in the directory /opt
and android-sdk-linux
is a subdirectory of it, and tools
is a subdirectory of android-sdk-linux
, so you cd to it like this:
cd android-sdk-linux/tools
without the leading /
, which signifies the root directory right at the top. You can see that /android-sdk-linux/tools
does not exist if you ls
the root directory
ls /
see? no android-sdk-linux
here. But you see opt
which is where you were before... That's why its location is /opt
If you are not in the /opt
directory, (for example you opened a new terminal) you need to use the full path
cd /opt/android-sdk-linux/tools
The directory may possibly have a different name so do
cd /opt; ls
and you will see, if not exactly, then something like android-sdk-linux
use the correct name:
cd android-sdk-linux; ls
now you should see tools
cd tools
and now you can run your executable.
Note: If you already closed it after step 6, to progress to step 7 in the tutorial, you should repeat the last two steps:
cd /opt/android-sdk-linux/tools
./android
android
again. Please comment if not, and we'll work it out (the tutorial is quite unclear I think) – Zanna Jul 29 '16 at 13:54android
file again? (see the end of my answer) – Zanna Jul 29 '16 at 21:37cd /opt/android-sdk-linux/tools
first? – Zanna Jul 29 '16 at 22:02