Thursday, July 21, 2016

Update Android SDK and Tools from terminal

1. Open Terminal and type below commands.

Opens Android SDK Manager UI. (same as
$android

Software available to update
$android list sdk -a

Install software
$android update sdk -a -u -t #
$enter 'y' to accept license

-----------------------------------------
Example
$android list sdk -a

outputs:
140- GPU Debugging tools, revision 3.1
141- GPU Debugging tools, revision 1.0.3
142- Android Support Repository, revision 34

We want to update "Android Support Repository, revision 34".
we need to use below command:
$android update sdk -a -u -t 142
$enter 'y' to accept license 
Done command installs Android Support Repository, revision 34 :)

 

No comments:

Post a Comment