Stuck on setup wizard of Android Studio - android

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.

Related

Android Studio SDK Manager downloading into incorrect directory

I recently changed my Windows username from myOldName to myNewName. However, when I did that, the SDK Manager is trying to download files to C:\Users\myOldName\..., thus creating an error saying it can't find that directory.
I want to change the download directory for the Android Studio SDK Manager from C:\Users\myOldName to C:\Users\myNewName. How can I do that? Because without changing it I can no longer download anything from the SDK Manager.
Tools-->Android-->SDK Manager,then click the edit button
I had this problem too, go to your SDK directory and look for ".installer" in each of the of problem components (E.G if you cant install/update "platform tools" look for ".installer" in "{your-sdk-directory}/platform-tools/" ). Inside ".installer" you should find ".installData", open with a word editor the change the path to whatever you want, save it, close any file explorers that have your SDK directory open and retry.
Hope this makes sense and is not too late.

Android studio can not update with a warning

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

Android SDK in Android Studio

I have downloaded the Android Studio but when I want to create a new project, an error pops up saying "Your Android SDK is out date or missing templates..
How do I fix this project, or how do I update the SDK in the Android Studio?
Click here and update your SDK ;)
You can update your sdk in many ways.
1. Download sdk from developer site.
SET:file->project Structure->in android SDK section set custom path of sdk
2.Tools->Android->SDK manager update sdk
This seems like permission problem. Someone who packed Android Studio, has the original files under non-root account. If you unpack it as root, the files and dirs has no permission for "other" (just for owner). The person who is packing Android Studio knows a lot about Android and Java, but not much about Unix permissions (uch!). There are two possible solutions:
a) unpack android-studio-bundle-...-linux.tgz as normal user, not as root (this has an advantage - you will be able to update Andriod Studio by clicking menu; but this is generally stupid because you are open to malware attack)
b) fix read permissions for files and dirs for whole android-studio directory with something like: chmod -R 755 /opt/android-studio (not ideal because all files has "x" then, but it works)
Had a similar issue in linux. I am new user to android without any projects, I followed the instructions in https://developer.android.com/sdk/installing/adding-packages.html , Once I got to "In Eclipse or Android Studio, click SDK Manager in the toolbar", I noticed that from the welcome screen configure> Sdk Manager was greyed out. To solve,closed the program and relaunched as a sudo/superuser. Then go to Project Defaults> Project Structure. In the Android SDK location field go to "directory-where-you-installed-android-studio/android-studio/sdk'. Once done, click ok. Then close and relaunch the program once more. The SDK manger should be active now

Android-studio Selected directory is not valid home for Android SDK

I installed android studio but while selecting android SDK I am getting following error. I tried solution which is on this post but no luck. How can I solve this?
I had this problem, select SDK folder (NOT SDK->sources or SDK-platforms)
I resolved with the instructions here,
http://www.blog.teamguru.in/2018/04/06/selected-directory-is-not-a-valid-home-for-sdk/
Just close current error window and let run the android studio
Open the SDK manager as shown below
Click on Edit SDK location as shown below
Simply press next button if there is correct location for SDK you want to install there
Let it be downloaded
Install platform and SDK tools and
Enjoy
Try restarting the application. Close all related studio processes, then right click "run as administrator".
You should be fine after this.
I got the same issue. You must enable the Android Support Plugin
Configuration > Plugin > Android Support Plugin. Check it.
Close error window
Go to gradle tab
select "Gradle settings", wrench icon
Search for SDK setup
Select appropriate sdk for your device.
Next, two times
Wait for install
There is all..
None of the other answers work. After the installation, immediately close Android Studio, then start it as administrator. A message might popup asking for the sdk manager location. Ignore it (Close the popup). Go to Tools > SDK Manager and click on the edit button on the right of Android SDK Location. Then click Next, next and you're good to go. Android Studio will let you install the sdk manager.
I had the same problem but what I found is that it requires the parent folder of the following things AVD manager,SDK manager,tools,platform-tools,build-tools etc.So what you need is to find the parent directory of these things, which you might find with a name such as android-sdk or android-sdk-windows(in case you are using windows OS).Make sure the above said contents are in that folder and select it.I hope you will find this useful.
Download the SDK from http://developer.android.com/sdk/index.html
Start SDK manager and make everything up to date
Also, make sure you have set the language level to
7.0 Diamonds, ARM, Multi-catch, etc
I had this problem on Linux. Apparently you need write access to some place in that directory, so I just took ownership of the entire thing:
sudo chown -R thomas:thomas /opt/android-sdk
Could be that something similar is going on on Windows as well.
If like me, a MacOs user which has installed Android Studio on my Mac and if you've tried everything you can think of but was still unable to set the Android SDK directory in Android Studio, follow the next steps (I know the site where I got the bundle is a freeware site but the package is the right one):
1. Download adt-bundle-mac (Android Developer Tools) from [here][1].
2. Unzip the file and browse into the unzipped folder.
3. Copy only the sdk dir to /Users/username/Library/Android
4. Open Android Studio, the error about the SDK folder which is not set will pop up, set the path to the SDK to "/Users/username/Library/Android/sdk".
5. Now Android Studio will accept the path and you're good to go.
I wasted about 2 hours until I fixed it so I hope that by writing this answer I'll save you some 2 hours.
The sdk folder contains the platform-tools folder.
I copied this folder and named it platforms, then it worked for me.
Just delete(preferably permanently) all the android directories in whatever location they are present(e.g. C:\Program Files\Android, C:\users\respective user\respective android folders). Remove the installer as well(if possible). Make sure to save all your Android Studio files in some external storage (preferably).
The main thing is to get Android studio with SDK.
Now go to the android studio website and install android studio leaving all settings default. There you will also get to install the SDK and it's linking.
It will take some time to load and will load nearly 1.5 GB files.
This worked for my case.
In my case I wasn't giving him admin permission
Steps to follow:
Close Android Studio.
Restart Android Studio and Give the path of Empty Folder .
Install Sdk in that folder(Sdk will automatically install and will get configure automatically.)
With Android Studio 4.1.2 the easiest thing is to close the project (file / close project). That's how you get to the wizard that automatically sets up the SDK for you.
The default location that it suggests is /Users/stan/Library/Android/sdk (exactly the same that I was trying to set up manually but AS kept saying it's invalid)

Android SDK download with Eclipse, getting error message: Failed to create directory C:/

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

Categories

Resources