Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sdkmanager vs "android update sdk" to install dependencies

Im installing android sdk into my ubuntu server to build/test my projects there.

I need to install dependencies for the command line and I found that now you can only download android/tools folder from Android download link.

There you can find bin/sdkmanager so I used to install build-tools and platform-tools, but found that I can use it to install android sdk versions, support repository, and others.

Whats the difference between

android update sdk --no-ui --all --filter android-25

and

sdkmanager "platforms;android-25"

?

like image 799
Daniel Gomez Rico Avatar asked Feb 08 '17 20:02

Daniel Gomez Rico


People also ask

Which Android SDK tools should I install?

According to Microsofts article "Which Android SDK packages should I install?" Install the "SDK Platform" for the Android versions you've set as minimum & target.

Which SDK is better for Android Studio?

For the best development experience with the Android 11 SDK, use Android Studio 4.2 or higher. You can compile and test Android 11 apps using Android Studio 3.3 and higher, but some users of the Android 11 SDK may encounter Gradle sync failures and warnings about outdated dependencies.

Where does Sdkmanager install?

It should be in: C:\Program Files (x86)\Android unless you set a particular path.

How do I update Android SDK?

To open the SDK Manager from Android Studio, click Tools > SDK Manager or click SDK Manager in the toolbar. If you're not using Android Studio, you can download tools using the sdkmanager command-line tool. When an update is available for a package you already have, a dash appears in the check box next to the package.


2 Answers

There is no difference between two. Btw there is a little type in your sdmanager command, platforms;android-25 should be in quotes.

sdkmanager "platforms;android-25"
like image 66
Onur A. Avatar answered Oct 05 '22 23:10

Onur A.


Right now it looks like the same thing. But

sdkmanager "platforms;android-25"

looks better for me.

Also you can use

sdkmanager --update

to update all installed items without any additional options.

like image 41
MaxV Avatar answered Oct 05 '22 22:10

MaxV