What exactly does the Android SDK Manager do? - android-studio

I downloaded the Android SDK only, without Android Studio, which I don't need. For Windows, the SDK is delivered as a zip file, and you unpack it to the folder of your choice. Following the unpacking, I ran the file android.bat, which launched the GUI for the SDK Manager and I downloaded further packages.
My question: Does the SDK Manager do anything other than downloading and unpacking packages? For example, does it kick off any background processes or services? And if so, how are those managed, since the GUI does not have means to control them?
PS: I'm tagging this question w/ Android Studio as it's the most closely related subject.
I am on Windows 7.

From https://developer.android.com/studio/intro/update.html
"The Android SDK Manager provides the SDK tools, platforms, and other components you need to develop your apps."
So yes, it allows you to install and update the various versions of the Android SDKs and tools. It doesn't run any additional processes.

Related

How to install SDK in android studio?

I once completely deleted Android Studio, but when I want to install it again, during installation, tick of SDK is not checked and it is not installed.
The installation location of SDK cannot be determined, whatever I do
I add ANDOID_HOME in environment variables in windows
I create C:\Android\Sdk SDK but But unfortunately SDK was not installed and
You will probably find the answer to your question here.
(I don't know if this will be your answer.
Because I have never come across such a problem).
I Think SDK is not in your system But you can download SDK from android official site for Android, mac or Linux.
Here is the link : https://developer.android.com/studio/releases/platform-tools
And paste the SDK here : C:\Android\Sdk

Standalone SDK Manager option in Android Studio 2.3

I have recently updated Android Studio from 2.2.3 to 2.3. Now can't see the option "Launch Standalone SDK Manager", which is useful to check for updates, google play services, etc.
It is a deprecated feature: https://code.google.com/p/android/issues/detail?id=235625 There is an option in Android Studio to "Show Package Details".
For manual SDK and AVD management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
See also: https://www.reddit.com/r/androiddev/comments/5x6adh/android_studio_23_is_now_available_in_the_stable/deg48lj/
Even I had this issue when I updated to Android Studio 2.3
Click on Configure on the bottom left side
Select the Check Box to Show Package Details on the bottom left side
Move between the different tabs as per your requirements.
Can't working on Android Studio 2.3.3
On Mac :
/Users/YourAccount/Library/Android/sdk/tools
click android, you'll see standalone SDK manager
On Windows :
C:\Productivity\android-sdks\tools
double click on android.bat, standalone SDK Manger will be launched (see image below).
As the standalone sdk manager has been deprecated in favor of studio builtin sdk manager, there's a workaround to get back the standalone sdk manager.
Step1.
Download command line sdk tools for your platform:
http://dl.google.com/android/installer_r24-windows.exe
http://dl.google.com/android/android-sdk_r24-windows.zip
the links refer to an old distribution intentionally (see note below).
Step2.
Copy the SDK Manager.exe, tools/android.bat and tools/lib/archquery.jar into your existing sdk to which android studio is currently being pointed.
Step3.
Run SDK Manager or tools/android.bat and you will get back your beloved standalone sdk manager while having latest android studio > 2.3
Note
if you download latest command line tools for sdk, you wont be able to find the archquery.jar which is required to run the standalone sdk utility.
In this latest version (2.3.1 and 2.3.1+), after some digging, I found a faster way to open AVD and SDK: In the welcome interface of Android Studio, after pressing CTRL+SHIFT+A, a search box will jump out, then you can input "AVD", the AVD manager will come out. To open SDK is the same way.
However, AVD does not work in the welcome interface but SDK works. If you want to use CTRL+SHIFT+A to quickly open AVD you must create a new project and open AVD in the project interface.
If you are a Xamarin user, you can install the Xamarin Android SDK Manager, available on the Visual Studio Marketplace which will give you an interface like this:
NOTE: The Xamarin SDK manager has to be accessed from visual studio, but it will (should) work on both windows and mac
You can open it from your SDK path which in my case is
C:\Users\Akshay\AppData\Local\Android\sdk
Double click on SDK Manager.exe and it will open standalone SDK manager, refer attached Screenshot.

standalone sdk manager in Android Studio

Tools => Android => SDK Manager to open SDK manager, and then check the "Show Package Details" to see the the list of installed and not installed components.
I try to find "Sample" folder under individual Android version, but I just unable to find the "Sample" component. I am very upset because I want to install Gesture builder that is inside the "Sample" folder.
By accident, I click the "Launch Standalone SDK" to launch the screen that looks similar to the SDK manager on eclipse, and I find the Sample folder.
Anyone can tell me what the reason I am unable to find the Sample folder on opened SDK manager (there are 3 tabs: SDK Platforms, SDK Tools and SDK update Sites)
Thanks
You need to download the samples for the particular sdk you're targeting. Furthermore, samples change from sdk to sdk.
So first find out which sdk, did the Gestures Builder sample come from, and then download that samples for that sdk.
After that, use the Android Studio wizard to create a project from the sample. Just be sure to target the same sdk (you can always change that target sdk later, once you have the sample).
Using Android Studio is best way to do it. There is no need to go to the folder itself and do things manually.
Actually, GesturesBuilder seems to be very old, it's api level 4 (Android 1.6). No wonder you have trouble finding it. My suggestion would be not to bother with it and try to find a more recent project example directly from github.com

Android Studio on Ubuntu 14

I am unable to install android studio on ubuntu 14.
The archive provided here https://developer.android.com/sdk/index.html#Other does not have the entire setup. The readme file says -
The Android SDK archive initially contains only the basic SDK tools. It does
not contain an Android platform or any third-party libraries. In fact, it
doesn't even have all the tools you need to develop an application.
Tried with the procedure described here, but the ppa is not available https://launchpad.net/~paolorotolo/+archive/ubuntu/android-studio.
Android Studio can be found here.
The link you posted points to the Android SDK which is required for Android programming - when you install the Android Studio it'll ask you to provide the Android SDK too.

How to use PhoneGap with Visual Studio

I'm having trouble getting started with PhoneGap on windows 8, VS 2012, namely:
I don't know how to install the templates
I open the template projects I've downloaded from PhoneGap, but they are in compatible with VS2012
I don't know where to start in respect to creating my first simple CRUD application
I want to connect to a WCF API and make some calls
How to publish the result allowing installation on many devices:
I mainly want to use iPhone and Android devices
How do I get started with PhoneGap?
#Smithy, Microsoft just made it possible to develop Cordova apps with Visual Studio 2013 Update 2.
Its just a preview as far as I understand, but go have a look.
If you have the latest version of Visual Studio installed, you need to go to Microsoft'd download page and download the installer:
http://www.microsoft.com/en-us/download/details.aspx?id=42675
This comes along with documentation on how to get started and how to install and set it up in VS 2013.
Good luck.
UPDATE:
With the release of Visual Studio 2013 Community Edition along with Update 4, MS has made it easier than ever to create Cordova project....and best thing of all is it's FREE!!!!
Benefit is that if your used to VS like me, this is a comfortable environment, and its super easy to get started.
To get access to these templates, follow the steps when creating a new project in VS, and you will be prompted to install additional software, including but not limited to SDK Manager, adt, iTunes, emulators etc..
After these are installed, it is now simple to create projects, edit and run them in the included RIPPLE emulator.
These projects can also in addition be deployed to your device from VS.
To check if your device is picked up on your PC, open a cmd and run "adb devices" to see if your device is picked up on your PC and a list of connected devices.
Easy, effective and it works. From, see link on terms of use and limitations in organisations: Free Dev Tools
Download link here: http://www.visualstudio.com/en-gb/products/free-developer-offers-vs
Q: Who can use Visual Studio Community?
A: Here’s how individual developers can use Visual Studio Community:
Any individual developer can use Visual Studio Community to create their own free or paid apps.
Here’s how Visual Studio Community can be used in organizations:
An unlimited number of users within an organization can use Visual Studio Community for the following scenarios: in a classroom learning environment, for academic research, or for contributing to open source projects.
For all other usage scenarios: In non-enterprise organizations, up to 5 users can use Visual Studio Community. In enterprise organizations (meaning those with >250 PCs or > $1 Million US Dollars in annual revenue), no use is permitted beyond the open source, academic research, and classroom learning environment scenarios described above.
Thanks Microsoft!
You can use VS to edit the html, css, and javascript files, but I don't believe there are any VS project templates available. At least I've never seen any.
But, you won't be able to compile and deploy. The templates for Android for instance are eclipse project templates since phonegap is building a java application in order to deploy to android.
If you want to develop for android, follow the getting started guide from Phonegap ( I can't get you a link right now due to firewall issues). The files you put in the www folder will be the html, css, and javascript files for your project and you can use anything you want to edit them, including VS.
You can create PhoneGap application using
Cordova vs plugin
Telerik App Builder
vsnomad
for more information please see the below link
http://sourcefreeze.com/cross-platform/visual-studio-cordova-plugins-for-cross-platform-mobile-apps/
You may also want to refer to this post that describes how to use Phonegap projects in the new Multi-Device Hybrid Apps that uses Cordova integration in VS - https://stackoverflow.com/a/23621633/1277291
RedGate has a product called Nomad which integrates beautifully with Visual Studio 2013.
It makes use of the PhoneGap Build cloud service. With this approach you don't need all the platform SDK's on your system. Works very well.
See this video. Unfortunately RedGate recently stopped supporting Nomad. I'm hoping Microsoft's new offering will offer similar capability.

Resources