Android SDK does not open - android

I have installed both the latest ADT Bundle and the latest JAVA SE, and have configured the PATH variable with the java/bin location in the first place. However, still the SDK Manager won't run. When I try to open the manager from Eclipse, a window pops up saying "Initializing" and then it closes and nothing happens. When I run the android.bat file from the SDK, I get the following error:
Any help to run the SDK Manager would be highly appreciated. I'm running Windows 7 64-bit. ADT version is v22.3.0-887826 and JAVA SE version is 7 update 45.
Fixed the issue
Apparently, I have to run the SDK Manager as an administrator. This fixed the issue. The "access denied" part should have given me some hint! Thanks everyone!

Fixed the issue
Apparently, I have to run the SDK Manager as an administrator. This fixed the issue. The "access denied" part should have given me some hint! Thanks everyone!
Another permanent fix to the issue
Taken from: http://productforums.google.com/forum/#!msg/drive/zbazK_MeKRs/gtBUnVNI1hAJ
Hello, I did the following
Open the windows explorer
Paste this address
%USERPROFILE%\AppData\Local\
Right click on folder Temp, then
Properties, then Security, then Advanced Then click on button Change
permissions
Remove all permissions
Select: Include inheritable
permissions from this object's parent
Select: Replace all child object
permissions with inheritable permissions from this object
Click OK....
Maybe a windows' update changed permissions. I hope this works with you.

First of all you try to install java JDK and after then you try to install Android ADT Bundle

I have already read about problems due to space in instal path.
In your case: D:\Android SDK\..."

Related

Sdk Manager won't launch in Android Studio

If I choose Tools > Android > SDK Manager from the menu, or click the SDK Manager icon on the tool bar, nothing happens. What can I do to correct the problem?
I had the same problem. When checking the {SDK}/tools/android it said it couldn't create a file, and I noticed it was in a location that needed admin approval.
When launching android studio, launch it as administrator then try it. Fixed it for me.
Did you check {SDK}/tools/android launch?
In my case, after a failed update 0.3 -> 0.59, I had clean-installed (unzipped) the wrong version (update only, which started just fine, but without SDKs), I had to reinstall the bundle version to even have SDK manager.
http://developer.android.com/sdk/installing/studio.html#Updating
My sdk manager was working, well, it seems to be working, but as soon as I started to download anything - showed me errors, something like "didnt create directory.." so solution was simple and easy - run as administrator. Or you can just change exe file to run as administrator in properties of this file ;)
Your Path environment variable doesn't contain C:\Windows\System32. Please try adding it and your error will be resolved!
Launch Android Studio as administrator and disable your anti-virus and try again. My comodo internet security was creating the trouble.
For ubuntu users,change the permission of {SDK}/tools/android to read/write for all users

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)

Unable to setup Eclipse for Android Development

Im having trouble installing Eclipse to develop Android apps. I have installed the android-sdk-windows as well as Eclipse Juno (running on Windows 8).
When I start Eclipse I get the message "This version of ADT requires Android SDK Tools revision 21.0.0.rc9 or above. Current version is 15.0.0. Please updaye your SDK tools to the latest version"
I then open my SDK manager, and select to update and install the package. But I get the error messages as per the images below
Can anyone please help with this as its driving me crazy. I have looked on here for solutions but a lot of the explanations get very technical or skip "obvious" steps and I get stuck. I have installed and unistalled a number of times, but no luck. I have manually tried to change the filename as per the second error message but it says the file is in use so I cant rename it. I have closed all internet explorer applications when trying this, as well as disabling Norton antivirus, but still no luck.
Make your download from this link Get SDK. It have the IDE Eclipse and the installation of the SDK already configured. Maybe this help you..
Exit Eclipse while having the SDK Manager open. Then press Yes. I think this is the problem.
You don't need to download sdk or other stuff. following steps
Pre-requestries : Install Jdk and setting the JAVA_HOME and install eclipse
Start Eclipse, then select Help --> Install New Software
Click Add, in the top-right Corner
In the Add Repository dialog enter "ADT Plugin" for Name & the following URL for Location
https://dl-ssl.google.com/android/eclipse/
Click OK
In the available software dialog check the Developer Tools and click, Next.
Read the license and accept it.
That it. Finish.
Hope you got the way.

Error received when updating the SDK with the SDK Manager

I'm completely frustrated with the Android SDK Manager.
I'm running Win 7 Home edition and have the SDK installed in its own top level directory on my D:\ drive.
When I run SDK Setup.exe from the command line (and I've even opened the prompt as an administrator), I get an error when trying to update the packages.
The SDK manager is telling me that I need to install the SDK Tools rev 7. But when I accept the license, I get an error message stating:
"A folder failed to be renamed or removed" yada yada yada. The Installing Archives window says "Failed to rename directory D:\android-sdk-windows\tools to D:\android-sdk-windows\temp\ToolPackage.old01."
I looked here for help:
http://groups.google.com/group/android-developers/browse_thread/thread/4b784f3eb1e096fd/ecadfb28ce5daf5f?lnk=gst&q=cannot+rename+folder#ecadfb28ce5daf5f
but the content there didn't help.
I DO have my antivirus (AVG) disabled.
I DO NOT have any other programs running -- just the command prompt to launch the SDK Manager.
I have even given the everyone group, for the D:\android-sdk-windows\ folder, full control.
I tried to rename the tools directory before starting the SDK Manager but then I get an error that a batch file cannot be found when I try to launch SDK Setup.exe. Grrrr.
None of this works.
Suggestions how to get the package to update without error are greatly appreciated.
Thanks!
A simple thing,
There will be zipped file after this error has been occured. Meaning that Updated tools got store as
tools_r16-windows.zip in C:\Program Files\Android\android-sdk\temp
Just extract it and copy it in our tools folder
C:\Program Files\Android\android-sdk\tools
Enjoy:)
I think ths might help. Please give your comments!!
If you get this error while using Eclipse on a 64-bit Window 7 (might 32-bit as well), exit Eclipse, go to your SDK folder and run "SDK Manager.exe" as Administrator. In my case, Eclipse turned out to be what locked the folder in the first place.
# Stratos - Thank you for your instructions, they worked for me.
Go to Android\
android-sdk\
tools\
Delete "source.properties" (Right click - delete)
Open SDK Manager and update
And everyone lived happily ever after...
You can't use 64 bit java or 64 bit eclipse. That's almost certainly your problem.
Had the same problem. For me it was a bit circular, the SDK manager had a hold at source.properties and closing the process terminated the update. I deleted android-sdk\tools\source.properties before running the SDK manager and it all worked. Oh and I was not updating through Eclipse so it is not an Eclipse problem.
I can't vote yet, or I would have voted for Stratos.
I had already disabled my Norton antivirus (after reading other posts).
Removing the source.properties file helped.
Don't forget to run SDK manager with admin rights if not already.
There is another simple way:
When the SDK asks to install the Java SE JDK press back and then press next. This time it will detect the installed JDK. I solved this problem twice with this method
Use Unlocker to unlock the tools folder.
Right click on tools folder -> Unlocker. This way you don't even have to find out what is locking the folder...
Start task manage and end Adb.exe. Thisnisnthe program that has a hold on the folder. Rename the tools folder to some other name eg. 'toolsold'. Then extract the zip file containing the new tools folder. Rerun the updates and it should be detected as updated and it should proceed with the outstanding tasks.
Run SDK manager as Administrator, this fixed for me

-Unzip failed...Access is denied- error while adding Android SDK components to Eclipse

Eclipse (3.5) -->Window-->Android SDK and AVD Manager--><>
When Adding SDK Components, there is the following error message:
Downloading Documentation for Android SDK, API 7, revision 1
Installing Documentation for Android SDK, API 7, revision 1
Unzip failed: C:\Program Files\Android_SDK\temp\DocPackage.new01\navtree_data.js (Access is denied).
This is followed by another message: -Nothing is installed-
I use Windows 7 64-bit system.
Could anyone please help to get around this? Thank you in advance.
vmitsura
The easy answer to this question is Right click eclipse.exe and select "Run as Administrator". Now it should all work as a charm.
Note that this only works if you originally did "Run as Administrator" when you first installed the Google plugins. If not, they may be disabled when you Run as Administrator and then you may need to delete the plugins and start over doing this. Otherwise, you'll keep having problems with permissions down the road.
This is an issue with versions of Windows since Vista. The "access is denied" message appears when you do not have write permissions to created files & directories in the Program Files directory (which is the case by default).
I faced the same problem and tried to run Eclipse, with the 'Run as administrator' option, but to no avail. I ended up moving the Android SDK to D:/ from C:
I am able to proceed now.
Perhaps the easiest way...
Go to Program(x86) -> Android -> (Right Click) -> Properties -> Security -> (In group or user names) choose "Users" click "Edit" then check the "Full Control", "Modify", and "Write"
Good luck my peers
Right click the android folder on program files, and set Modify premission to Users.
I had the same issue. I tried to run the Eclipse and SDK manager as administrator, without any luck.
For me, the trick was to temporarily disable my anti-virus (Avast in my case), and proceed to the installation with the SDK manager.
Yes that is true and now working.
Please doing this 3 step all people:
have an us intenet ip
run the program ass adminstrator
change android directory to d than current c 100% work dont worry
( if u have other prob conet me than facebook page facebook.com/milad.mosapoor)

Categories

Resources