When the downloading is finish,it comes a warning:"The Android SDK folder can no longer be inside the application folder.Please move it to a different location such as your home folder.When the IDE restart it will prompt you to enter the new location......"
And I restart it and choose a different loaction,but it didn't work.
"The Android SDK folder can no longer be inside the application
folder.Please move it to a different location such as your home
folder.When the IDE restart it will prompt you to enter the new
location"
Open the folder where you put your android studio, on Mac is (Applications/Android\ Studio.app/) and on Windows is %LOCALAPPDATA%\Android\android-studio\sdk, and move the sdk folder you find inside in another location. After you moved it in another location, press the retry button.
Cut sdk folder from (This is default location, you may have installed it somewhere else)
C:\Users\[Username]\AppData\Local\Android\android-studio
and paste it somewhere else then try to update.
Once it get updated then set the path your sdk in studio.
From Android Tools Project Site
To proceed, you should open up a file explorer or finder window, go to
the Android Studio installation (e.g. /Applications/Android
Studio.app) and move the sdk/ folder over to a different location,
such as your home directory. Once done, press Retry to finish
installing the patch. The reason this is necessary is two-fold: First,
we have made a lot of improvements to make the patch updater more
accurate, and in order for installation signatures to match, you
cannot have non-application folders inside the application directory.
Second, placing the SDK folder inside the application directory was
probably not a good idea to begin with: this folder should typically
be writable and in a directory with a lot of extra diskspace, such
that users can easily download and install additional libraries,
system images and so on. We are doing some work on the installer side
to make this easier to set up.
Grab sdk folder from
C:\Users[Username]\AppData\Local\Android\android-studio\sdk
and paste it somewhere else like C:\Users[Username]\AppData\Local\Android\android-studio
and start the update.
Then it will ask you to put the path. and its done
Related
I am stuck on this screen
Can't perform any further action. Since I already downloaded an SDK, I downloaded this version
Actually android studio try to download all the components of sdk, those which you don't have.
So, it can take a lot time, instead you can disable "Downloading Components" at startup:
Go to the installation directory of Android Studio.
There you will find a folder named "bin".
Inside this folder there is a file named "idea.properties".
Open this file and add the following line to the end of the file:
disable.android.first.run=true
What this will do is disable the check that Android Studio performs on first run and decides to download all that stuff.
If it asks to save the file at some different place instead of overwriting the original one, please check the access permissions to the file.
Hope this will help you.
Remove Android Studio settings dirs for re-run Setup Wizard.
I my case I removed both
C:\Users\bieli\.AndroidStudio4.0
and
C:\Users\bieli\.android
Have you specified custom path to SDK in previous step?? if you do not download the SDK you have to go through custom settings and then specify path to SDK. you are also needed to configure the path to SDK in your environment variables, if you are using window system.
What I found reason for this problem, my SDK was corrupted or damaged. My drive were crashed and I have recovered files by recovering tool, that's why files are get damaged and SDK was not working properly.
Then I redownloaded SDK and its running fine.
Is it necessary to download android sdk for each and every system we install android studiod? Isnt there a way to copy the whole setup from one computer to another ?
Copying the whole Android Studio Folder (don't has to be installed on C) should work.
Not tested!
Android website have options to download only the sdks whichever you want.
And then when you install Android Studio afterwards, when it first opens it will ask you to point out the path for Android SDK either on the first windows that pops up or in the settings tab.
So just copy the SDKs into the system everytime you have to install Android Studio and just simply point it out from it.
Why have I got two Android directories on my Mac?
Both are under ~/Library.
One is Android (which contains a 9.4GB sdk folder) and the other is android-sdk-mac_86 (which contains a 1.7GB system-images folder and a 1.7GB add-ons folder).
What's the difference and can I delete one of them?
The first question is which of the SDKs you use from your IDE (Android Studio?).
If it's not declared in your Android Studio preferences, it might be in a system variable (try echo $ANDROID_HOME from terminal)
My guess is that you're using the android-sdk-mac_x86, and you should keep that one. this looks like the latest official Stand-alone SDK, as written in the developer site:
Unpack the ZIP file you've downloaded. By default, it's unpacked into
a directory named android-sdk-mac_x86. Move it to an appropriate
location on your machine, such as a "Development" directory in your
home directory.
Make a note of the name and location of the SDK directory on your
system—you will need to refer to the SDK directory later when using
the SDK tools from the command line.
The folders you mentioned also fit what this SDK comes with.
If you are still not sure, you can rename one of them and see if everything still ticks.
I would personally delete both, and start with a fresh SDK that fits your current SDK packages, we usually carry junk from the past we don't actually need (http://developer.android.com/sdk/installing/adding-packages.html)
The Android directory contains Android studio and all the relevant files, while the other directory contains the stand alone SDK tools. You have the option to download either or both from their website.
You can delete both of them given you have the privileges.
I Have the whole Eclipse Android sdk working. Everything but the virtual device manager. I downloaded to Bundle from androids website, installed java JDK into the eclipse folder, then housed the entire bundle in a folder on my desktop. When I go to hit the "Androd Virtual Device Manager" button, nothing happens. Nothing at all. It used to work ( i could never run the program though, I could just open the window to make anew device)
Make sure you have properly installed/updated sdk to the latest version
https://developer.android.com/sdk/installing/adding-packages.html
Try running the C:\android-sdk-windows\AVD Manager
I had the same problem, I am running windows 7 home basic on my laptop.
Do the following steps :
You need to first copy your entire java folder(the one containing the java sdk) to a location where administrator rights are not required.
Change the path variable by going to the advanced tab in My Computers and adding a new environment variable.
once you do that, go to the folder where you have your entire android sdk and in its parent folder search for the file named android.bat.
go to the properties of the file found and copy the entire address
go to cmd and type-cd"the path you copied".
you are in the tools folder and now type android.bat and press enter..
it takes some time like 30-40 sec and then opens our beloved sdk manager, and you are there.
Why does this happen? It doesn't matter which package I pick, always the same error message:
Downloading Android SDK Platform-tools, revision 3
Failed to create directory C:\Program Files\Android\android-sdk\temp
Make sure you have writing permissions for that folder. Try starting Eclipse or the SDK Manager as Administrator.
You only have to run SDK Manager as Administrator, right click and select Run as Administrator.
If you put the Android SDK (or anything else) in Program Files, Windows will, by default, require Admin access to edit files in it. But you can change that by changing the folder permissions:
In Windows, right click on the android SDK folder, click Properties. Go to the Security tab, click Edit to change the permissions. Select normal Users and check the box to Allow Full control.
Then, applications that you launch as a normal user will be able to edit the SDK, such as to update it or compile libraries in it.
Please whether the directory C:\Program Files\Android\android-sdk\temp is already there. If there you see the temp folder then delete the temp folder and try again. It will be installed then.
You can also try installing Android outside of Program Files. I usually put it in C:\Android, then there are no permission issues.
Actually the folder /temp didn't exist for me, so I just created it and then all was fine.
Yes, after that you need to run android SDK as administrator to download the API/platforms.
If anything looks strange (like a list of incomplete names) no worry, close it, and reopen it after 10sec.
Run SDK Manager as Administrator, right click and select run as Administrator. It's one of the amazing things of W7, ;p