ADT - Android SDK manager shows update installed with a red mark - android

I am using ADT with Eclipse on MacOSX. Yesterday, after I installed some updates via the Android SDK manager, the IDE no longer recognizes the SDK. In the SDK, the update shows being installed with a red mark.
After I install the SDK build-tools 17. Still not work in ADT
The sdk path is correct, I can open sdk manager from menu of eclipse. BTW, when I open eclipse it display a message like this, but nothing when I press check for updates

This mostly occurs because the IDE is incapable of finding the path where the android SDK is installed. Check if the path set in your IDE is the correct path, try setting that manually by going to
Window - Preferences - Android - SDK Location and setup SDK path.
then go to:
Window > Preferences > General > Startup and shutdown: Check "Android development toolkit"
& restart eclipse from File menu.

It's new update of Android SDK manager to indicate installed platforms.. Nothing to worry about that. Update Android build tool 17 also.Surely it will work.

i your picture the build tools are not installed first install them and restart eclipse and enjoy and if any other problem comes type in commments

Related

Where is Android SDK option to install on Android Studio?

I've just formatted and installed a fresh windows 10. Next, I downloaded Android Studio and didn't see the Android SDK option to install.
Android_Studio_Install_Option
I installed it nevertheless. Naturally, after I opened Android Studio, it opened a window saying that it needs Android SDK to work properly. I went to Android Studio homepage again, and downloaded
SDK Command Line
Extracted it to c:\program files\android . I opened Android Studio again and tried to pinpoint the tools folder inside c:\program files\android\tools as the location of SDK and received this warning:
not valid home for SDK
I typed CMD with administrator rights, entered the tools folder, and executed android update sdk and it downloaded some files and wrote after a while repositores.cfg could not be loaded.
I am out of options now. I need the SDK to compile ! I can't find an offline install on internet. How can Android Studio be installed without the SDK ? I do not understand... and before you ask, there's no android folder on c:\users\my_user\AppData\local ...is there a bug on the latest Android Studio install program? I can't have SDK already installed because this is a fresh install of windows 10. Help on this matter will be much aprecciated.
If you can open Android Studio then go to Tools --> Android --> SDK manager and you should be able to install or uninstall SDKs from there
I had similar problem. I had settings imported from my previous Android Studio installation and my Android SDK Location was set to a folder which was empty. I couldn't figure out how to download new Android SDK but after clicking "Edit" next to "Android SDK Location" (in Default Settings > Appearance & Behavior > System Setttins > Android SDK) Android Studio opened a dialog box where I could choose to install/update my SDK or just selected components of it.

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.

Android Studio SDK Managed Disabled

I just downloaded the Android Studio .dmg for OSX. Per the installation instructions, I've dragged it to the application folder and launched the application.
But the SDK Manager and AVD Manager are greyed out and are impossible to use.
Any ideas on an installation step I may have missed?
For people coming for this same problem for Windows: you won't have an Android SDK anywhere if it is your first time with Android. Also, here the Android Studio doesn't come with a packed SDK Manager, so you need to download one.
So this is what you may do:
Download the SDK Manager and an Android SDK
Download the SDK Manager from: http://developer.android.com/sdk/. Use the link that says "Get the SDK for an existing IDE".
Execute the downloaded installer.
Execute this program with administrator rights: SDK Manager.exe
Download the proposed SDK (if you get errors regarding the SDK Manager couldn't create some folders, remember it should be executed as administrator).
Configure Android Studio to work with the new SDK
Open Android Studio and in the Quick Start window click "Configure", you will see the SDK Manager greyed out.
Go to "Project Defaults", then to "Project Structure" and there it will ask for the path where you installed the SDK.
If you click OK and go back you will see the SDK Manager is no longer greyed out, and now you can start creating projects.
A project needs to have been loaded at least once for the link to become available.
Found it in :
File / Project Structure...
Then in "Android SDK" provide the path to the SDK folder inside the Android Studio Application Bundle.
Then Make a new project.
Then after the initial setup the elements where finally enabled.
Android Studio Beta v0.8.14 with the Android SDK for Mac does not appear to include the SDK: you need to install the SDK manually (e.g. https://developer.android.com/sdk/installing/index.html?pkg=tools) and then configure Android Studio to find and use it.
(I ended up using the ADT bundle, since I couldn't seem to find the SDK as a standalone download.)
You need to use the buttons on the welcome dialog, and not on the applications menu bar or preferences (as I had initially thought). Step by step:
(Note that "SDK Manager" is greyed out until you complete this, at which point you cannot undo it for the purposes of taking screenshots...)
Navigate back and the "SDK Manager" button on the "Configure" panel should be enabled. Clicking it should display something like this:
I had a similar problem and the cause was that I've used path with a space in it. There was a warning in the window that can cause problems with NDK, but in fact it caused problems with Android Studio internal SDK as well. After changing the path it works fine.
Go to configure -> project defaults -> project structure
give the path for the SDK and press OK.
It should work now
For Mac Users (Android Studio Beta v0.8.14)
The SDK or SDK manager is not included with this version of Android Studio, and the documentation is obfuscated regarding this change at this point.
Download the standalone SDK from here. You may select the latest revision of the same from this link below the title GET THE SDK FOR AN EXISTING IDE.
Extract the downloaded zip, and rename the folder as sdk
Copy the sdk folder into the Android Studio.app/Contents directory
Restart Android Studio and you will be shown this dialog when the Android Studio starts up
To remove grey out area,
you need to follow this steps as below:
Go to File
Click on Project Structure
Go to SDK Location
Click on Browse to find SDK path
Select proper SDK path on your system
Now click on SDK manager icon on Android Studio toolbar
I hope this solves the problem of grey out area.
Thanks,
This will no longer be a problem when version 1.0 is released. In the meanwhile you can download the latest canary build (1.0 RC2), which downloads the SDK during the setup.
For me, the issue was on windows and it was as simple as launching the installer with "administrative" mode. That's it!

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.

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.

Categories

Resources