Your Android SDK is out of date or is missing templates. Please ensure you are using SDK version 22 or later.
The machine I'm using I've not had Eclipse on before, but had to because of the SDK Issue,
I've installed
SDK 64bit here:
C:\Program Files\Java\jdk1.7.0_21
SDK 32bit here:
C:\Program Files (x86)\Java\jdk1.7.0_21
Android-Studio is install here:
C:\Program Files (x86)\Android\android-studio
Eclipse
C:\Program Files (x86)\Android\Eclipse
Now on another part of this forum a nice post said to change the settings in Configure -> Project Defaults -> Project Structures, but I'm not to sure what to change. I did go into project in (project settings), the list in there is:
None
1.7 (java version 1.7.0_21)
Android SDK (java version 1.7.0_21)
I selected Android SDK (java version 1.7.0_21). Then there are the NEW and Edit buttons. But when I try to give it a path C:\Program Files\Java\jdk1.7.0_21 etc it says it's incompatible.
My environment variables are:
ANDROID_HOME = C:\Program Files (x86)\Java\jdk1.7.0_21
JAVA_HOME = C:\Program Files\Java\jdk1.7.0_21
Does anybody know how to fix this???
Also make sure that inside Configure > Projects Defaults > Projects Structure > Click on the "Android SDK" section at the bottom left panel and insert the path of your Android SDK like this: /Applications/Android Studio.app/sdk (Use the browser to point to the sdk folder).
Android SDK is different from Android API level.
I had this issue when i tried to migrate from Eclipse to Android Studio IDE.
The problem is the version of Android SDK Tools as the error message supposes.
Presuming you have installed Android SDK from Eclipse before:
1. Open Eclipse
2. Go to Help->Check For Updates and update to latest version (just to be sure)
3. Go to Window->Android SDK Manager
4. on the SDK Manager make sure you have selected Tools.Android SDK Tools,Platform-tools and SDK Build-tools![first 3 on the picture][1]
5. Press 'Install packages'
6. Restart Eclipse and Package Manager
7. Repeat steps 4, 5 and 6 until there is nothing left to update.
8. Close Eclipse, start Android Studio and try to 'create new project' again. This time it should work!
If you are able to start Android Studio, you can open SDK Manager from there (in the toolbox by defaut), and go on from p.4
if using Eclipse also be sure to have set the SDK path the same as in Eclipse
Android Studio - configure - Project Defaults - Project structure - Press plus- Android SDK - put path to the same sdk that you use in eclipse (run SDK and in top panel you can see this path) from here
In your eclipse
Go to Help → Install New Software.
On Work with: type https://dl-ssl.google.com/android/eclipse/ and press ENTER.
Wait for Eclipse to fetch the repository. An item named Developer tools will appear in the list.
Mark it for install, press Next and follow the steps to install the ADT tools.
When finished, it will ask to restart Eclipse. Make sure you do this.
When Eclipse restarts, all your Android SDK packages should show up again.
Related
How do you open SDK Manager on the latest Android Studio in OS X? It appears grayed out in the initial screen and it seems I don't have any SDK installed...
Close all open projects so you get the opening screen.
Choose Configure -> Project-Default -> Project Structure
Then set the path to your SDK and JDK, respectively.
Mine are:
SDK: /Users//Development/android-sdk
JDK: /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
If you are on OSX, your JDK might be similar, your SDK will be wherever you put it.
Since the SDK doesn't come with Android Studio, you have to install it manually.
You can use brew with brew install android-sdk and then you can open it via android (All done in the terminal)
For me, I found that the android binary was missing from the Studio.
So I downloaded the SDK, and moved it in.
Path is as given by #Cory, /Users/<user>/Library/Android/sdk
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.
I'm having trouble exporting my first APK in eclipse. When I click on finish, I get the message: No build tools installed in the SDK.
I've googled the problem but all the results say that i have to install Android SDK Tools, but I have it and it's been updated (22.0.1).
Any ideas?
Thanks!
EDIT:
I have ALL the packages installed but still the same error.
Ubuntu 12.04
Eclipse 3.8.0
JDK 7
From version 22 forward the build tools is a separate package. Open then Android SDK Manager and check Android SDK Build-tools and click install. The package will download and you'll be able to export/build.
If eclipse is pointing to the wrong Android SDK it won't find the build tools. If you're sure you installed the right build tools, it may be that eclipse is pointed to the wrong directory. So if you're on windows, in eclipse, goto Window -> Preferences -> Android, and check the field in "SDK Location" eclipse is looking for the build tools in a subdirectory of that folder. Goto that folder and run the SDK Tools.exe and install everything in that GUI and it should work. Otherwise, change the path to your other SDK installation.
Here's a kinda same tutorial for Mac:
Add SDK to eclipse and no Target
Seems like I'm having some problems after updating my android sdk tools and platform-tools using the sdk manager. The problem is that, after updating, I found that the avd or sdk options in the windows dropdown menu in eclipse are gone! And, I can't find any option to create an android project from file->new projects any more.
I tried removing the ADT from eclipse and the software site "https://dl-ssl.google.com/android/eclipse/" from "available software sites" and then reinstalled the ADT from "https://dl-ssl.google.com/android/eclipse/" using help->install new software. The installation was successful, but I still don't have any option for shortcuts to the SDK manager or the AVD in eclipse, and neither can I create a new android project.
By the way, the android perspectives are not gone, they are still here. Also, I can manually open the avd and sdk manager from the directory where I have installed them.
Can anyone please show me a workaround? Any help would be greatly appreciated.
I have solved this as follows:
Window > Customize Perspective... (you will see Android and AVD Manager are disabled)
Command Groups Availability > Android and AVD Manager > check
Tool Bar Visibility > Android and AVD Manager > check
I had similar problem after updating SDK from r20 to r21, but all I missed was the SDK/AVD Manager and running into this post while searching for the answer.
I managed to solve it by going to Window -> Customize Perspective, and under Command Groups Availability tab check the Android SDK and AVD Manager (not sure why it became unchecked because it was there before). I'm using Mac by the way, in case the menu option looks different.
Well I feel silly, but my problem was that I was in the Debug perspective and they do not show up in that perspective. Switched back to the Java perspective and viola.
Window -> Custom Perspective -> Command Groups Availability -> Android SDK and AVD Manager check it
Chances are that you may be running your eclipse using Java 1.5.
Latest Plugin requires that the JRE be 1.6 or higher.
You will have to use Eclipse that runs on JRE 1.6
Edit: I had run into same problems. If it is not JRE problem then you can debug this. Follow below procedure:
Window -> show View -> other -> Plugin Development -> Plugin Registry
In the plugin registry search for com.android.ide.eclipse.adt or any other plugin related to android (depending on your installation there maybe 7-8)
Select , Right Click -> Diagnose. This will show the problem why the plugin was not loaded
Try to reinstall ADT plugin on Eclipse. Check out this:
Installing the Eclipse Plugin
I would suggest you to install the ADT plugin compatable with your Android SDK tools and try to install all the required plugins compatable with your Android SDK
LIKE
Android SDK tools Rev 20.0.3
Android SDK tools Rev 20.0.3
Android SDK Platform-tools Rev 14
Android 2.3.3(API 10) sdk platform rev 2
samples for sdk api 10 rev 1
ADT Plugin 20.0.3
Unfortunately I ended up having to re-install eclipse. but first (In Linux)(not sure of folder in Windows) do:
sudo rm -R /usr/share/eclipse/
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.