I'm on a very small 128 gig SSD and need to install various android SDKs to my hard drive on this machine (d:), I'm wondering if there is a way to actually change where the Android SDK manager installs packages, and I'm also wondering if I did happen to change the install directory, what would I need to move around to ensure nothing breaks with Xamarin? Like for example would I have to move my previously installed Android SDKs?
The Android SDK Manager install packages to where the android-sdk folder is located. You can find out where your Android SDK is located by different means, including:
From the Android SDK Manager
Open Tools -> Android -> Android SDK Manager
The path will be displayed at the top of the view in the SDK Path
From Visual Studio
Navigate to Tools -> Options -> Xamarin -> Android Settings
The path is displayed at the Android SDK Location entry
From Xamarin Studio
Navigate to Tools -> Options -> Projects -> SDK Locations -> Android
The path is displayed at the Android SDK entry
As for instance, if you were to install a new SDK (say 24), that would be copied to .../android-sdk/platforms/android-24/.
What you could do is to simply move the android-sdk to any other folder of your liking. I have done this myself due to an issue with MultiDexing, where I moved the SDK to C:/android-sdk/. Just remember to update the path as described in the list above.
Related
Hi i need to run my app on android 4.0.3 device and i downloaded them from vs sdk manager
but when i want to create a new device 4.0.3 version , in the Os list is not displayed.
how can i create a device other than default device ?
How can I add Android Device under V4.4 to visual studio 2017 emulator Xamarin
As #FabriBertani said, you could try use Genymotion instead. But when I use Genymotion on my side, I could only create the emulator that version is higher than 4.1.1:
i want to create a new device 4.0.3 version
So if you need to create an android 4.0.3 version simulator, I still recommended you to use the Android Studio, the Official IDE for Android. It will be quite simple to create such a simulator.
When you install Android Studio, you could you could use the already installed Android SDK, because there's no need for you to download it again. I have written an answer about it and I write it here again:
Install Android Studio, the Official IDE for Android.
Create a blank project and open it.
change Android SDK Path.
a. Go to File -> Project Structure
b. Change the SDK location to your Visual Studio SDK Location
I. Default Xamarin Android SDK Location is C:\Program Files (x86)\Android\android-sdk, you could find it in VS : Tools -> Options -> Xamarin -> Android Settings
II. There is a problem when you change the SDK Location: cannot contain whitespace. You could open CMD as Administrator and type: mklink /J C:\Program-Files-(x86) "C:\Program Files (x86)", like this.
III. Then you could change the SDK Location, effect.
Effect:
In Android Studio, click Tools -> AVD Manager -> Create Virtual Device -> choose a device definition -> click Next:
I have downloaded the latest version of Android 3.0.1.0 along with the command line sdk tools. I unzipped both the files and tried to install Android Studion but it doesn't find SDK. After searching online I put unzipped SDK folder into the following directory C:\Users\User-Name\AppData\Local\Android\Sdk, but it still doesn't find it.I have also heard that Android Studio contains SDk tools but still it is showing no SDK tools.Please help me.I am using windows 7 32-bit OS.
In Android Studio go to:
File → Settings → Appearance & Behaviour → System Settings → Android SDK
and set the location of your SDK
I had the same problem. The real problem was diacritics in my user home folder in windows! (C:\Users\Rodiče).
So I renamed it (here are the steps:
https://superuser.com/questions/890812/how-to-rename-the-user-folder-in-windows-10)
and then make symlink (for possible applications which uses the old path):
mklink /J "c:\Users\Rodice\" "c:\Users\Rodiče\"
I need to install Android Studio in a third world country with very poor internet connection. Is it possible to download everything I need into a USB stick in the US and then go there and install?
Yes it possible but you would need to download both Android Studio and the SDK. You can do so from this page http://developer.android.com/sdk/installing/index.html.
Downloading Android Studio is simple enough. Copy it to USB and then transfer it to your machine and install. You will need an internet connection to update Android Studio when updates come out though.
The SDK is a bit different. Download the SDK tools from the above link. Once that is download save the SDK tools to a USB. The SDK can be saved anywhere and transferred to another machine easily as Android Studio points to an external location for the SDK. In this case, once the SDK is downloaded, update the SDK and get the API's and emulator images that you want by calling either of the two below:
On Windows, double-click the SDK Manager.exe file at the root of the
Android SDK directory.
On Mac or Linux, open a terminal and navigate to the tools/ directory
in the Android SDK, then execute android sdk.
Then you can transfer the SDK tools folder (which should now have grown in size) wherever you want on your machine and just point Android Studio to it by following the below steps:
File -> project Structure into Project Structure
SDK Location (in the left hand panel)
Select Android SDK location (for versions of Android Studio before 1.0.1, press +, add another sdk)
I just downloaded the Android Studio .dmg for OSX. Per the installation instructions, I've dragged it to the application folder and launched the application.
But the SDK Manager and AVD Manager are greyed out and are impossible to use.
Any ideas on an installation step I may have missed?
For people coming for this same problem for Windows: you won't have an Android SDK anywhere if it is your first time with Android. Also, here the Android Studio doesn't come with a packed SDK Manager, so you need to download one.
So this is what you may do:
Download the SDK Manager and an Android SDK
Download the SDK Manager from: http://developer.android.com/sdk/. Use the link that says "Get the SDK for an existing IDE".
Execute the downloaded installer.
Execute this program with administrator rights: SDK Manager.exe
Download the proposed SDK (if you get errors regarding the SDK Manager couldn't create some folders, remember it should be executed as administrator).
Configure Android Studio to work with the new SDK
Open Android Studio and in the Quick Start window click "Configure", you will see the SDK Manager greyed out.
Go to "Project Defaults", then to "Project Structure" and there it will ask for the path where you installed the SDK.
If you click OK and go back you will see the SDK Manager is no longer greyed out, and now you can start creating projects.
A project needs to have been loaded at least once for the link to become available.
Found it in :
File / Project Structure...
Then in "Android SDK" provide the path to the SDK folder inside the Android Studio Application Bundle.
Then Make a new project.
Then after the initial setup the elements where finally enabled.
Android Studio Beta v0.8.14 with the Android SDK for Mac does not appear to include the SDK: you need to install the SDK manually (e.g. https://developer.android.com/sdk/installing/index.html?pkg=tools) and then configure Android Studio to find and use it.
(I ended up using the ADT bundle, since I couldn't seem to find the SDK as a standalone download.)
You need to use the buttons on the welcome dialog, and not on the applications menu bar or preferences (as I had initially thought). Step by step:
(Note that "SDK Manager" is greyed out until you complete this, at which point you cannot undo it for the purposes of taking screenshots...)
Navigate back and the "SDK Manager" button on the "Configure" panel should be enabled. Clicking it should display something like this:
I had a similar problem and the cause was that I've used path with a space in it. There was a warning in the window that can cause problems with NDK, but in fact it caused problems with Android Studio internal SDK as well. After changing the path it works fine.
Go to configure -> project defaults -> project structure
give the path for the SDK and press OK.
It should work now
For Mac Users (Android Studio Beta v0.8.14)
The SDK or SDK manager is not included with this version of Android Studio, and the documentation is obfuscated regarding this change at this point.
Download the standalone SDK from here. You may select the latest revision of the same from this link below the title GET THE SDK FOR AN EXISTING IDE.
Extract the downloaded zip, and rename the folder as sdk
Copy the sdk folder into the Android Studio.app/Contents directory
Restart Android Studio and you will be shown this dialog when the Android Studio starts up
To remove grey out area,
you need to follow this steps as below:
Go to File
Click on Project Structure
Go to SDK Location
Click on Browse to find SDK path
Select proper SDK path on your system
Now click on SDK manager icon on Android Studio toolbar
I hope this solves the problem of grey out area.
Thanks,
This will no longer be a problem when version 1.0 is released. In the meanwhile you can download the latest canary build (1.0 RC2), which downloads the SDK during the setup.
For me, the issue was on windows and it was as simple as launching the installer with "administrative" mode. That's it!
I already have the latest android sdk with all platforms/sources/etc downloaded.
How can i tell Android Studio to use an existing android sdk without moving it to android-studio\sdk\?
Follow this:
Open up your project in Android Studio.
Go to Settings for the Project via F4. Or selecting the Project Root -> Right-Click and then Module Settings.
You will find Project Settings and Module Settings under which you have the option of selecting both your JDK and Android SDKs if you want.
For e.g. under Platform Settings, you will find SDKs and you can simply tap on the green + sign to add your own path to a locally present SDK.
Hope this helps.
Go to Configure > Project Defaults > Project Structure. There is a setting: SDK Location.
Changing that will make AS use the specified SDK (instead of the one it comes with) for all your projects.
How you do it without having to download another 1GB android sdk:
While installing Android Studio, you have an option to install Custom or Standard.
Choose Custom, and then set the location of your android SDK to where your SDK currently resides.
A red message will appear saying that an existing SDK installation was detected and that only outdated and missing plugins will be installed.
:)
In Android Studio
Go to
File -> project Structure into Project Structure
Left -> SDK Location
SDK location select Android SDK location (old version use Press +, add another sdk)