Android SDK Setup.exe will not run - android

Running XP sp3 when i click SDK Setup.exe command line promt comes up and goes away fast and nothing else happens is there a fix for this ?

try making empty folders named 'platforms' and 'add-ons' without quotations in your android-sdk-windows folder and then running sdk setup.exe
worked for me just now

I just download the .zip file, opened the file and double-clicked the SDK Setup.exe and it loaded fine. A setup window popped up in the background, that does not happen to you at all?
EDIT:
Take a look into Installing the Android SDK and look over the System Requirements and make sure you have both JDK 5 or JDK 6 (which you do) and JRE 6

Run it from the System command prompt not the User command prompt, not sure if thats really what its called, but there are 2 separate command prompts. You want the one that has higher privelages.
UPDATE
Is your computer able to connect to https? That was an issue that was holding me back from installing android at first, however it is appropriate for the command prompt to disappear immediately.

Ok here is my own fix and recommending it to others save SDK kit unzip to C:\ then 1.) download the latest java currently java 6.0.18 from --> java web site save and run (I used c:\ for file locations to save and run from) 2.) download the latest "Eclipse IDE for Java Developers" from --> eclipse org downloads site 3.) go to my computer c:\ --> C:\Program Files\Java copy the jre6 folder or jre...what ever version you may have paste the folder into the folder name C:\eclipse rename the folder from jre6 to just "jre" this will allow eclipse to run, in eclipse click on the help tab click install new software add location http://dl-ssl.google.com/android/eclipse/ ok do restart go back into eclipse go to window tab preferences, expand android, browse c:\android-sdk-windows ok, window tab Android SDK and AVD manager, Available packages, select all, update, in same area go to virtual devices, new, name: Hi target: android 2.1, create AVD, Select and start, now you will have android 2.1 emulator working

Related

NO Android option in "tool" menu, and no avd manager

Problem : No AVD manager in Android Studio, and no "Android" option in the "tool" menu.
Tried solutions :
re-install (twice)
changed installation partition to the one containing the Android SDK directory
went to "configure" - "project default" - "project structure", and checked my Adroid SDK directory (it's there)
open a new project - there is still no android menu, and no avd manager.
instead of "Android" in the "tool" menu, i have "Kotlin"
i tried to use terminal, and console, to launch android avd : not opening
i tried to search for Android, or AVD, in the search option. they show, but when i click, nothing happens
i saw people saying i needed 5gig storage to install Android Studio. but when i install mine, it only offers one option, and total is 2gig. but i have way more than enough storage space on both my partition for 5gig or 50gig
i tried to customize toolbar, but Android options are just not there to be made visible
i have read all the posts here regarding this issue, and have not found a solution that works.
It must be a simple step that i am missing, but which one ???
-
Which Android Studio are you trying to use?
I am using 3.0 and I see both "Android" and "Kotlin" submenus under "Tools".
I am using macOS 10.12.6
I faced the same issue, but it's resolved now.
Follow the steps mentioned below:
Run the unistaller from Control Panel if you are using windows.
After you have uninstalled Android Studio, it is recommended that you restart the machine before proceeding with the steps below.
To remove and delete the remains of Android studio setting files;
Go to C:\Users[YOUR WINDOWS USERNAME]
Delete .android, .AndroidStudio and any versions of this directory with versions on the end, .gradle and .m2.
Then, go to C:\Users[YOUR WINDOWS USERNAME]\Roaming and delete the JetBrains directory. (If any, else ignore).
Finally, go to C:\Program Files and delete the Android directory.
Delete any remains of the SDK, in Windows Explorer, C:\Users[YOUR WINDOWS USERNAME]\AppData\Local and delete the Android directory.
(Optional) Delete all previous projects AndroidStudioProjects directory.
Instal Android Studio
Wait till after sometime a prompt will appear to standard or custom installation
Select Custom Installation and make sure Android virtual device is selected there and continue install.
Once everything is done.. Create a project with basic actvity and then wait.. It atleast take 5- 10 minutes to load... At the end you will see Gradle build finished in the console.
You may get errors in console. There will be link to fix all these errors at the console only if there are any errors.. click on those links and those will get automatically fixed. Do this till the console errors goes away.
Then view Tools menu hopefully you should find ANDROID menu option there :)

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 Emulator wont open in eclipse

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.

Can´t download Android packages through SDK and AVD Manager any more

That´s the error message:
Downloading Android SDK Platform-tools, revision 8
File not found: C:\Program Files (x86)\Android\android-sdk\temp\platform-tools_r08-windows.zip (Access denied)
When i look into my "temp" folder, it´s empty..
What´s the problem here?
Running "SDK Manager.exe" as administrator should solve your problem. That worked for me.
It seems to help to move it to another folder, I just moved the directory C:\Program (x86)\Android to C:\Android.
Using Windows 7 x64.
You should move your directory from C drive.It sometime happened with me so that i changed the Location of Android Sdk & tools because there is a possibility of window crasehd due to some uncertain reason so you will have to download all that Platform tools data again.
I think you should do following thing:
Install updated SDK.exe
Right click on SDK/AVD manager to Run as Administrator for plugins
Hope it may short out your problem.
This is old question but still actual and unconfirmed (unsolved).
SDK Manager creates sdk/temp folder and tries to copy there library archive files. So permissions are problem. You can either change permissions to a sdk folder, move SDK to another location or run SDK manager.exe as administrator.
If one choose the latter option:
Go to \sdk\tools folder, find and run android.bat, which does everything in the safest way (gathers and sets what it needs and run from temp folder). I even don't think that running just SDK_Manager.exe will work.
Permissions are not the Problem. I had the same problem using Windows 8, and I looked into the .bat files to see whats the problem. "android.bat" uses the xcopy command to copy the libraries it uses into the temp folder. But the xcopy command is stored in the System32 folder. Edit android.bat and replace "xcopy" with "C:\Windows\System32\xcopy". That solved it for me, my temp folder did what it was supposed to do, and if I run SDK using the shell, I dont get any errors.
Permission is the problem.
Do this
First Right Click on the Android Sdk Directoory
2.Choose properties
Go To security Tab And click the Edit Button.(you need to be Administrator to do this)
4.Click the Add Button
type "Everyone" in the Enter object Name box And click "Check Names".
Then Click Ok
Now select "everyone" in user names Box And give it Full control in Permissions Box.
Click ok & again Ok to exit.
(: Now you will not need to run SDK Manager as administrator everytime

installing android offline is hard[obsolete]

i am a student in africa and in our land, there actually exist slow and expensive internet connections, which is why we tremble in fear whenever we hear the word "online repository" method of installing software. Damn, that usually means you have to look elsewhere.
The problem.(i cant install android without connecting eclipse to the internet)
It is possible to manually download individual components as .zip files but there is no way of installing them into android eg i have managed to download
platform-tools_r03-windowsandroid-sdk_r10-windowsetcbut no matter what i do, i can't get android to recognise them as components. It seems tens of thousands of other developers have a similar problem (see below)
This qn has 10k views(meaning 10k people had a similar problem)
another lost developer
webpage sudgesting solution that failed to work on windows seven ultimate
If someone has actually ever installed android without connecting eclipse to the internet, please let us know the magic you used. Thanks in advance :)
EDIT:
if someone out there is still interested check out http://qdevarena.blogspot.com/2010/05/download-android-sdk-standalone-for.html
and make sure your folder structure is as shown in http://developer.android.com/sdk/installing.html
For SDK and platform tools you can just extract the zip content, Eclipse has nothing to do here.
For Eclipse ADT plugin:
Download the zip file from http://dl.google.com/android/ADT-10.0.1.zip
Help -> Install New Software -> Add
Select Archive and then provide the location of the zip file
These steps are clearly explained in Eclipse ADT documentation.
Only in Windows
Install (if not installed) Oracle JDK jdk-7-windows-i586.exe
install Eclipse SDK
Add to the PATH environment variable the path to the JDK (for example c:\Program Files\Java\jdk1.7.0\bin)
Edit the file hosts (c:\WINDOWS\system32\drivers\etc\hosts), add the entry "127.0.0.1 dl-ssl.google.com"
It's important! Port 80 must be free at the time of installation Android SDK
Run the Abyss Web Server X1 (abyssws.exe). Works best if you download a fresh copy
Run the Android SDK "SDK Manager.exe" installer
In the "Android SDK Mannager" in the menu "Tools" >> "Options" put the check ("force https:// ... sources to be fetched using http:// ...")
Android SDK Manager will fetch packages in your computer. Choose the packages for API you want to program against, select and install packages
After installation the file hosts (c:\WINDOWS\system32\drivers\etc\hosts) entry "127.0.0.1 dl-ssl.google.com" you entered in step 3
Good Luck!! and remember to update to lastest APIs and revision
You can download Eclipse ADT and install
IN Eclipse: Click Help tab and Install New Software tab
Click add button
In Add Repository Window, add in Name Field Eclipse ADT and Location field click archive to browse in local machine where you downloaded ADT
Press Ok and tick all, Eclipse will install the less
The answer by dtmilano is not valid for the current version of android SDK. (androdi 4.2.2)
The android website says that after the unzipping of the ADT:
Your Eclipse IDE is now set up to develop Android apps, but you need to add the latest SDK platform tools and an Android platform to your environment. To get these packages for your SDK, continue to Adding Platforms and Packages.
http://developer.android.com/sdk/installing/installing-adt.html
Instead, try
http://qdevarena.blogspot.in/2010/05/download-android-sdk-standalone-for.html
as mentioned by
Installing android SDK in eclipse offline
I'M a Ghanaian..I did it about a week ago on ubuntu it might work on windows
your question indicates that you have eclipse installed..so i will just move on to setting it up to run android apps ...
step 1: go to developer.android.com to download the sdk for windows(i recomend you download the one with the installer).
step 2: launch ur favourite browser and open this site.
you will see an xml page using ctr+f (any shortcut for finding a text on your browser) type andoroid 2.2 or any android version you like latest is kitkat 4.4...you will find ur prefered android version in zip file for ur OS i.e windows...just copy the text and append it to this address.
this will download the the platform for you in .zip format....just navigate to where you extracted ur sdk and go to platform folder and then create a new folder with any name and then extract the platfor you downloaded earlier i.e android version into the new folder you created...just launch the sdk.exe and it will auto detect your platform for you...
just go and creae your Android virtual device and start running your apps..

Categories

Resources