Android Missing Platform Tools
Please can someone assist me with this, I have an Ubuntu server (terminal only), I have downloaded the android SDK, I have java installed, when in /tools I try to run ./android and
Solution 1:
Android manager has a graphical interface. But it can also be used via command line for some cases.
Run with -u
(no UI) option:
android update sdk -u
Accept licenses (y
) and this will install/update everything required automatically.
To update/install selective packages only, first list packages available for install/update:
android list sdk -u
This will list available packages with a number index, for Example:
Packages available forinstallation or update: 111- Android SDK Platform-tools, revision 242- Android SDK Build-tools, revision 243- Documentation forAndroid SDK, API 23, revision 14- SDK Platform Android N, API 24, revision 15- GPU Debugging tools, revision 3.16- GPU Debugging tools, revision 1.0.37- Android Support Repository, revision 338- Android Auto Desktop Head Unit emulator, revision 1.19- Google Play services, revision 3010- Google Play APK Expansion library, revision 111- Google Play Licensing Library, revision 1
Now you can install packages, filtering (-t
) by number index to install only those:
android update sdk -u -t 1,2
On Linux: You can add android tools to $PATH
:
Lets say sdk directory is /home/user/sdk
then:
edit user's bash profile:
nano ~/.bashrc
Add following to it:
export ANDROID_HOME=/home/user/sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/build-tools
and save (CTRL+O
and then CTRL+X
)
Logout and login again, run from terminal:
echo$PATH
to verify.
Post a Comment for "Android Missing Platform Tools"