I am trying to start Android Development and trying to do so using the ADT plugin in my Eclipse Mars(Windows 10)
I have installed the ADT plugin in my eclipse version 23.0.7.2120684.
Also I have downloaded the SDK tools(tools_r25.2.3-windows) and extracted it to D:/eclipse\SDK.
But everytime I open Eclipse and click on Windows->Preferences ->and enter the SDK Location as D:/eclipse\SDK which is the SDK folder I am getting the below error:
The Android SDK requires the new Build Tools component to be installed.
Please open the SDK Manager and install "Android SDK Build-tools"
I click on Open SDK Manager and nothing happens, but I get an error message in the console:
[2017-04-10 22:56:35 - SDK Manager] [SDK Manager] Error: Expected verb after global parameters but found 'sdk' instead.
Can you please tell me what I am doing wrong here. Most of the installation guides/steps found on the net are a bit redundant since they are quite old.
As of Android SDK Tools Revision 25.3.0 removes obsolete/deprecated tools, see Release Notes, and as ADT plugin is no longer supported it cannot work with it.
However revision 25.2.3 should be working. If you still want to use Eclipse try to look at Eclipse Neon for Android Developers.
Eclipse no longer supports Android Application Development. Announcement here.
You might install Android Studio or Intellij Idea to create android apps using java.
Related
I'm using Visual Studio and am unable to open layout files in the Xamarin Android Designer. I get this error when I try:
Something went wrong
The installed Android SDK is too old. Version 25.1.3 or newer is required. Please update to the latest
version.
I’ve already updated Xamarin, and am still stuck. How can this be fixed?
I recently ran into The installed Android SDK is too old. Version 25.1.3 or newer is required. Please update to the latest version. myself and found that I had to update the Android SDK in two stages to get things working.
As other users have mentioned, only updates for version 24.x.x were showing, while version 25.x.x was nowhere to be found. I installed the available updates for Tools, Platform-Tools, and Build-Tools, then exited and reopened the Android SDK Manager. This worked; version 25.x.x was now available for installation.
tl, dr;
Install 64-bit JDK 1.8
Update Android SDK Tools, Platform-tools, and Build-tools. Close SDK Manager and repeat if the version required in the warning isn’t
shown. You may need to exit Visual Studio if you get "Warning! A
folder failed to be moved"
Make sure the Android settings in Visual Studio are pointing to the
right locations: Tools > Options > Xamarin > Android Settings
Keep the Xamarin installation up to date! Tools > Options > Xamarin > Other > “Check Now”
Unsure if that was a one-off, I decided to do a fresh Xamarin installation with Visual Studio 2015 on Windows 10. Here is how I reproduced the issue and got back to working with layout files. This is long and these steps can probably be streamlined, but I wanted to give a clear picture of what I did.
Here is my step-by-step process:
Download Xamarin for Windows
Update to Xamarin latest Stable: Tools > Options > Xamarin > Other > “Check Now”
Open Android SDK Manager, update Build-tools from v23.0.3 to v24.0.3
Uninstall Build-tools v23.0.3, close SDK Manager
Close & reopen layout file, get "too old" message
Open SDK Manager, update to Build-tools v25, uninstall Build-tools v24.0.3
Close SDK manager & layout file
Reopen open layout file, get same message
Open SDK Manager, update to Platform-tools v25
Close SDK Manager & layout file
Reopen layout file, still too old
Open SDK Manager, update SDK Tools from v25.1.2 to v25.2.2
Here, I got the same warning mentioned in another SO post
Carrying on:
Exit Visual Studio; dismiss warning and process continues fine
The warning came back; dismissing again allows process to complete
Close SDK Manager, open Visual Studio, load Android project, open and layout file. Success! I can view layout files again.
There are a few additional things I’d like to mention to minimize potential snags/confusion:
Android Studio is not required. In addition to the prompt in the “SDK is too old” message, the Android SDK Manager can be opened via Tools > Android > Android SDK Manager or the SDK Manager toolbar icon.
My personal practice is to have only one version of the Build-tools installed to help minimize potential conflict or upstream issues, such as a couple that came up while using “version 24”.
Xamarin.Android 7.0 requires JDK 1.8. If you have not already done so, consider installing 64-bit JDK 1.8. This is the simplest option since it is backwards compatible with all previous API levels, it supports the new Android designer features, and the 64-bit version is required to use custom controls in the Android designer.
After updating, go to Tools > Options > Xamarin > Android Settings to verify that the correct locations are pointed to for the JDK, Android SDK, and Android NDK.
I’d also like to note that Android SDK updates are not specific to Xamarin. If we’re developing for Android, we need these tools for things like emulators, debugging, signing APKs, and accessing the newest platform features, whether using Xamarin or not.
For the curious, more details can be found here:
- Android Studio Command Line Tools doc
- What are the Android SDK build-tools, platform-tools and tools? And which version should be used?
I've solved this problem. First, download Android SDK tool 25.1.3 from Google here and extract it.
Then, remove the existing 'tools' folder under SDK like D:\\android-sdk\tools.
After removing it, put the 'tools' folder you recently extracted under the android-sdk path.
Finally, restart your vs. This is working sucessfully for me. I'm running on Windows 7 32-bit.
I downloaded and installed SDK Tools for Windows (I'm using Windows 7 Professional - 64 bit and have Admin rights).
Setting Up an Existing IDE page explicitly instructs:
If you'll be using Eclipse, do not start the Android SDK Manager,
and instead move on to Installing the Eclipse Plugin.
I then followed Installing the Eclipse Plugin instructions. I was able to download the plug-in (steps 1 - 7). During installation I got the following errors:
Error: Missing platform-tools
[2014-01-20 20:26:59 - Android SDK] Error when loading the SDK:
Error: Missing platform-tools
[2014-01-20 20:27:18 - SDK Manager] [SDK Manager] Error: Missing platform-tools
These tools were actually preselected and would've been installed by SDK Manager, but as (shown above) we were told not to do so.
What do I do now to complete the installation. Do I install Platforms tools via SDK Manager? If so, do I unselect everything else?
I do not believe this case is covered in Troubleshooting ADT Installation section of the Android web-page.
Please point me into the right direction.
platform-tools used to be included in the SDK by default but for some reason Google removed it, and now you have to launch the SDK Manager first, and install the Android SDK Platform Tools.
You can go ahead and install other packages as well at this stage if you want, but all you have to install is the platform-tools. After that you can start eclipse again, go to Window--> Preferences --> Android and point it to the right location
I see this on the forum, but unlike the hit on the forum where a version update was required to resolve, I believe my software is up to date.
Under Windows 7, Android SDK Manager shows:
android sdk tools 21.1 Installed
Android sdk platform tools 16.0.2 Installed
SDK path c:\users\owner\documents\adt-bundle-windows-x86-20130219\adt-bundle-windows-x86-20130219\sdk
When I try to begin a project via 'file-new-Android Application Project', the panel reports
---The tools need to be updated via the SDK Manager
---Tools installed out of date or not installed
Any direction on this would be appreciated.
OK. I had viewed this Eclipse ADT and find out the way to get around this issue and able to Update My SDK Tool to 21.1.0.
Solution is : First Update ADT to 21.1.0 and Then Update SDK Tool to 21.1.0
Actually, above link Says,
ADT 21.1.0 is designed for use with SDK Tools r21.1.0. If you haven't already installed SDK Tools r21.1.0 into your SDK, use the Android SDK Manager to do so.
So, What i have to do is to update my ADT to 21.1.0(Latest Version) and then was able to update SDK tool to 21.1.0. i thought only SDK Tool has been updated Not ADT. so i was Updating the SDK Tool with Older ADT Version(21.0.1).
How to Update your ADT to Latest Version?
In Eclipse go to Help
Install New Software ---> Add
inside Add Repository write the Name: ADT (as you want)
and Location: https://dl-ssl.google.com/android/eclipse/
after loading some time you will get Developer Tools and NDK Plugins
check both if you want to use NDK in the future or check Developer Tool only
click Next
Finish
Copied
Which android sdk should be downloaded with eclipse galileo 3.5 version. and what ADT Plugin should be installed? i downloaded android sdk 1.6 and initially installed adt 0.7 plugin but it said adt needs to be updated. but now when im trying to update the adt to 16 it shoes the following error:
Your original request has been modified.
"Android Development Tools" is already installed, so an update will be performed instead.
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Traceview 16.0.1.v201112150204-238534 (com.android.ide.eclipse.traceview.feature.group 16.0.1.v201112150204-238534)
Missing requirement: Android Traceview 16.0.1.v201112150204-238534 (com.android.ide.eclipse.traceview.feature.group 16.0.1.v201112150204-238534) requires 'org.eclipse.core.runtime 3.6.0' but it could not be found
http://developer.android.com/sdk/eclipse-adt.html
you can see ADT 16.0.0+ requires Eclipse Helios (Version 3.6), so I think you need ADT 15.0.1
Doing a quick search i found this:
how to install android sdk on eclipse 3.5
You download the SDK for your OS.
http://developer.android.com/sdk/index.html
If you use windows, I recommend the exe file for you.
http://developer.android.com/sdk/eclipse-adt.html
http://developer.android.com/sdk/installing.html
You can download the Android SDK from http://developer.android.com/sdk/
index.html.
Once the SDK is downloaded, unzip its content (the android-sdk-windows folder)
into the C:\Android\ folder, or whatever name you have given to the folder you just
created.
Once Eclipse is up and running, select the Help >> Install New Software
In the Install window that appears, type http://dl-ssl.google.com/android/eclipse in the text and click Add
You may reinstall the eclipse by the following steps
Install jre7 with Netbeans
install eclipse
install ADT
in the step 3, you are asked to install Android SDK version by which package. click the top option
I have installed the latest android sdk (android-sdk_r10-windows.zip), latest eclipse helios (eclipse-jee-helios-SR2-win32.zip) and latest adt plugin (ADT-10.0.1.zip). Below is the listing for the installed packages of my android sdk:
Android SDK Tools, revision 10
Android SDK Platform-tools, revision 3
Documentation for Android SDK, API 11, revision 1
SDK Platform Android 3.0, API 11, revision 1
Google USB Driver package, revision 4
I did also edit my Windows path environment variable to include the path to adb.exe and set my android sdk location in eclipse preferences accordingly.
Everything looks perfect until I try to import a sample project (by phonegap). There is a console message telling "Failed to parse the output of 'adb version'".
I have been googling around since yesterday. I just wonder if anyone did manage to get all these (eclipse 3.6.2, android sdk r10, adt 10.0.1) click together.
By the way, I find that there is also no way for us to fall back to earlier combination of eclipse, android sdk, and adt plugin. In my case, I managed to get an earlier android sdk (android-sdk_r09-windows.zip) and adt 9. But when I tried to install the basic packages online, I was hit by this error:
"Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: Connection timed out: connect"
Earlier android sdk and adt plugin is not available; latest android sdk and adt plugin is not capable.
Many thanks for help on this.
Start Here: http://developer.android.com/sdk/eclipse-adt.html
Head over to the installing URL: http://developer.android.com/sdk/eclipse-adt.html#installing
Look at the path for the download: http://dl.google.com/android/ADT-10.0.1.zip
Substitute the version you want in that link:
ADT 10.0.1: http://dl.google.com/android/ADT-10.0.1.zip
ADT 10.0.0: http://dl.google.com/android/ADT-10.0.0.zip
ADT 9.0.0 (Dead Link): http://dl.google.com/android/ADT-9.0.0.zip
ADT 9.0.0: http://dl.google.com/android/ADT_9.0.0.zip
ADT 8.0.1: http://dl.google.com/android/ADT-8.0.1.zip
ADT 8.0.0: http://dl.google.com/android/ADT-8.0.0.zip
ADT 0.9.9: http://dl.google.com/android/ADT-0.9.9.zip
ADT 0.9.8: http://dl.google.com/android/ADT-0.9.8.zip
ADT 0.9.7: http://dl.google.com/android/ADT-0.9.7.zip
ADT 0.9.6: http://dl.google.com/android/ADT-0.9.6.zip
ADT 0.9.5: http://dl.google.com/android/ADT-0.9.5.zip
ADT 0.9.4: http://dl.google.com/android/ADT-0.9.4.zip
Given that the 9.0.0 link swapped a '-' for a '_' in the path, it looks like some poor soul is doing these builds by hand. Too bad directory browsing isn't available for these. Anyway, hope this helps someone in the future.
You can change the url from https://dl-ssl.google.com/android/repository/repository.xml to http://dl-ssl.google.com/android/repository/repository.xml and try again.
You can check the project you are trying to import for settings which are not campatible with your Eclipse or SDK version.
The eclipse version should be fine. You should focus on the SDK version. many have had trouble on Windows with rev 10. You can install and use all the previous versions of Android SDK easily as long as the url you're using is correct.
I finally got all these click together already. It is actually due to the antivirus/firewall program. It is indeed nothing wrong with eclipse, adt plugin or android sdk. Just make sure that android executables is not blocked from running. Anyway, big thanks to those contributed to this post.