Android SDK installation errors - android

Installing the Android SDK. Got Eclipse Juno (latest version). Ran into some minor issues with the installation, but managed to get past them. But now I have one I just can't work through. I've downloaded the Eclipse ADT Plugin. When I restart Eclipse, it gives me this error: "This version of ADT requires Android SDK Tools in revision 20.0.0 or above. Current revision is 16.0.0. Please update your SDK Tools to the latest version." The error dialog box gives me a button to open the SDK Manager, which I take. It opens the SDK Manager and it finds the new packages that I need. When I go to install them, I get ANOTHER error. The log says:
"Failed to rename directory C:\Program Files (x86)\Android\android-sdk\platform-tools to
C:\Program Files (x86)\Android\android-sdk\temp\PlatformToolPackage.old01."
and a dialog pops up telling me that it can't rename the folder and what to try to get it to work. It never works, and I have to Cancel everything all the way back to Eclipse (which is still miffed that I don't have the latest stuff).
I've tried rebooting and such, but it doesn't help. I tried running the SDK Manager as Admin, but when I do that, it thinks it has all the latest stuff (weird) and won't want to download anything.
Just FYI, I have Rev. 16 of the Android SDK Tools (it wants 20) and have Rev. 10 of the Android SDK Platform-tools (it wants 12).
Thanks for any help!

Did you start eclipse as an Administrator? If not, try it, sometimes eclipse just installing updates if you are an admin.
If I update SDK, I first start SDK-Manager without eclipse to install updates. After this is done, I am doing the same in eclipse. Always do this as an admin.

Related

Sdk Manager not opening from eclipse

SDK Manager is not opening from eclipse. An initialization screen comes but the SDK Manager doesn't open. I have tried renaming android.bat file but that doesnt work. Re-installing has also been tried.
The possible reason for this to happen is you might have installed the plugin in a wrong way or the destination of the file might have changed by some means.
Make sure these 2 are correct on the 1st place.
If you are confident about these 2 are proper. Make sure the actual SDK_Manager.exe runs directly from its folder destination if double clicked.
which will be present in your android SDK path--->\Android\android-sdk\SDK Manager.exe
Open android.bat in sdk/tools folder by right click on it and click edit
find the line-
set java_exe=
edit it to your path to java.exe like
set java_exe=C:\Program Files\Java\jre7\bin\java.exe
then delete the next line which is
call lib\find_java.bat
This one worked for me......
Check out this link......
After 2 days of frustration not getting solution to launch SDK Manager manually and in Eclipse. Finally, I figured out the solution and whatever solution available elsewhere is not correct on recent development. Thought of adding this info of Android SDK for new to mobile testing enthusiast:
Android encourages users to use Android IDE, so you don't find Android ADT bundle zip file in the site. You may need to download from untrusted source if you want to configure SDK to Eclipse manually.
Solution:
Download JDK, install it, set environment variables for JDK and JRE in your system. (if not sure, please see videos of how to install JDK)
Download Eclipse, unzip it and launch Eclipse
In Eclipse, Go to Windows and click Install new software
Enter this url in work-with: https://dl-ssl.google.com/android/eclipse/ and press Enter
Select Developer Tools checkbox and click Next and finish
Click Ok for permission in popup
Click OK to restart Eclipse
Click Cancel in setting SDK in preferences
Parallely, Android Installation Tool windows opens up, click next
Select automatically downloading Android SDK tools and api versions
It downloads all required tool, it restarts the eclipse, sets preferences,
Now you can launch SDK Manager from Eclipse or go to SDK tools folder and launch Android in tools folder.
The reason of this is using newer version of android sdk tools.
Eclipse supports sdk tools version 25.2.5 and build-tools version 25.0.3. The reason is google has removed some optional/deprecated tools from sdk tools in release 25.3.0. But eclipse needs them to work with android projects. So the thing you can do is delete tools folder from your sdk and download eclipse supported version
Android SDK Tools:
https://dl-ssl.google.com/android/repository/tools_r25.2.5-windows.zip
https://dl-ssl.google.com/android/repository/tools_r25.2.5-linux.zip
https://dl.google.com/android/repository/tools_r25.2.5-macosx.zip
Extract them in your sdk installation directory.
You can now access to SDK manager by using the android command, which is located in tools directory of your sdk. You can also do this from eclipse.
Note that Eclipse supports build-tools version 25.0.3 and older, so you will have to download them. For other tools you can select latest version. They are supported by eclipse.

Eclipse says my SDK tools are out of date when they're not

When I open up Eclipse it tells me that my SDK tools are out of date. Eclipse says my current version is 17 and I can update it to 20. This is a lie; when I open the SDK Manager, my SDK tool are 20.0.1. But when I open up the SDK Manager VIA Eclipse, the SDK tools change to version 17. I already looked at Eclipse: won't let me use Android SDK, wrongly claims my ADT is out of date but it still wouldn't work. I deleted Eclipse and started fresh by downloading Eclipse and installing the Android repository(ADT) to Eclipse. No luck, still tells me SDK tools are 17. So I decided to play along and clicked "Open the SDK Manager" window in Eclipse. The Manager popped up and clicked "install 1 package" (SDK Tool). Halfway through, it stops and says the android-sdk/tools directory is locked by java.exe and cmd.exe so I opened Windows Task Manager and ended the "java.exe" process. And what do you know? My Android SDK Manager Windows just closed. How the am I was supposed update the SDK Tools if the SDK Manager is going to interfere with itself?
Had similar problem. My answer was update ADT Plugin for Eclipse (Help->Check for Updates). Restart Eclipse.
None of the above worked for me. I had to "delete" SDK Build tools packages and then re-install the packages. After doing that, I could now create a new android project.
For most, a simple update of build tool to required version suffice. As often happens, Android SDK Build-tools with compatible version is not installed.
Turns out, Eclipse was looking for the SDK Tools in the wrong place. Eclipse was looking for the tool in:
C:\Program Files (x86)\Android\android-sdk
The ACTUAL TOOLS was in:
C:\Users\YourName\AppData\Local\Android\android-sdk
The SDK Manager will tell you where the tools are. You can tell Eclipse in the preferences (under the Windows) to look in that directory.

"This verison of ADT requires Android SDK Tools in revision 17 or above." I can't get this error to go away.

The full text is:
This verison of ADT requires Android SDK Tools in revision 17 or above.
Current revision is 15.
Please update your SDK Tools to the latest version
When I get this error, it prompts me to open up the SDK Manager.
Then I select the newest version, and try to install it, but then I receive the error message:
-= Warning! =-
A folder failed to be moved. On Windows, this typically means
that a program is using that folder...
So, I close Eclipse, and click 'Yes' to try again, but I keep getting the same error message.
Any idea on what to do?
I solved this problem on my mac by modifying the plugin.prop file:
for mac
/Users/admin/Desktop/android-sdk-macosx/tools/lib/plugin.prop
for ubuntu
......./android-sdk-linux/tools/lib/plugin.prop
Change the line from
plugin.version=17.0.0
to
plugin.version=16.0.1.v201112150204-238534
And reload eclipse.. and it no longer warns about anything.
In order to run updates in the Android SDK on Windows, you need to run it as an Administrator. If you aren't an administrator, most upgrade operations will fail with permissions errors (they're not always reported as permissions errors, but that's what they are).
Right click on the SDK manager tool icon in your start menu, and select the "Run as Administrator" option.
You will then be able to run your upgrades.

Android Unknown Command 'crunch'

I just installed Eclipse and Android SDK in Mac OS X.
I imported the project to Eclipse and i get the Unknown command 'crunch' error while running the project.
How should I solve this issue.
Please help me
I just update
"Android SDK Platform-Tool" to 8 Rev and "Android Asset Packaging Tool"
from android sdk manager,
and then it works.
Have a try!
After updating to ADT r14, go to Window -> SDK Manager (in Eclipse)
Check on 'repository', uncheck "installed"
Wait for packages to load, then select all support packages, accept all and install them
Restart Eclipse
Run your apps on new ADT r14, without 'crunch' errors
Worked for me :)
Updating Android SDK Tools to r14 and Android SDK Platform-tools to r8 also solved this problem for me.
I had to check 'Installed' in the SDK Manager in order for the updates to be listed (even though I had the previous versions already installed). Checking only the New/Updates box meant they wouldn't show up in the list.
Go to Window -> Andriod SDK Manager (in Eclipse)
Check on 'repository', uncheck "installed"
Wait for packages to load, then select all support packages, accept
all and install them
Restart Eclipse
I had the same issue.
To fix it :
- Uninstall the current sdk tools (Android SDK Tools and Android SDK Platform-tools) in the Android SDK Manager
- Reinstall them at their last version (r14).
I encountered this kind of problem also, when updating SDK,
The solution was to re-enter the SDK folder path to the Eclipse.
(For some reason, the new SDK was instaslltion was in a diffrent folder from the original one)
For me, what worked was a combination of what Androgeek and tinyau said.
Summing up. I needed to update both my Android SDK Tool and Support Tools and restart eclipse.

Updated to Android sdk r15, but now I can't use anything

I'm not sure what I did wrong, but I'll try and give as much information as I can.
Yesterday, I updated a few things in the manager, with one of them being sdk r15. Now, I'm not sure what was updated because I believe there is the sdk 15 and the adt plugin r15. In any case, one of them was updated. I didn't restart and continued to work without any problems. However, today my emulator stopped loading the app I was testing. I restarted eclipse and was thrown this prompt:
"This Android SDK requires Android Developer Toolkit version 14.0.0
or above. Current version is 12.0.0.v201106281929-138431. Please
update ADT to the latest version."
Currently, all of my projects have error symbols next to them. I then proceed to click the AVD manager, which I'm given a prompt that says:
"The location of the Android SDK has not been setup in Preferences."
I go to Preferences and see that the sdk path is pointing to the correct folder. I haven't changed anything so I dont see how the path could be a problem.
What happened? How can I get things working again? Perhaps, the update did not install everything properly?
EDIT:
By the way, I "apply" and "ok" are greyed out in Preferences no matter which folder I choose.
Use the Update Manager feature of your Eclipse installation to install the latest revision of ADT on your development computer.<>
Assuming that you have a compatible version of the Eclipse IDE installed, as described in Preparing for Installation, above, follow these steps to download the ADT plugin and install it in your Eclipse environment.
Start Eclipse, then select Help > Install New Software....
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK
Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
5. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
7. Read and accept the license agreements, then click Finish.
Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.
OR
You can launch the Android SDK and AVD Manager in one of the following ways:
From within Eclipse, select Window > Android SDK and AVD Manager.
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:

Categories

Resources