ADT Installation error - android

Im having a problem during I install ADT in eclipse Helios in Windows XP.. after I put this https://dl-ssl.google.com/android/eclipse/ in Repository, it says Duplicate Location and I can't click for the next step..Thanks in Advance

I got the same error message: "Duplicate location". Strange because the location is not in my list of sites.
I got rid of it downloading using http instead of https, though I understand this is just a workaround.

try software update
and in box mention mobile and device development
there u see adt install it

Start development for Android in Eclipse
Now we must install ADT Plugin. For
that we must launch Eclipse ( go to
C:\Android\Eclipse and double click on
eclipse.exe ) waiting for eclipse to
be loaded. After eclipse is loaded
successful we are going to Help
->Install New Software and there in the field work with we select this
url:
https://dl-ssl.google.com/android/eclipse/
and press Enter button. Then, in
appeared tree Developer Tools we
select all subtrees and press Finish
button. After all plugins will be
installed Eclipse will suggest you to
restart it. Press Restart Now. After
restart we will have Eclipse with
installed ADT Plugin.
Yesterday I try in this way and all goes right, I install eclipse at home and run application on it. May be you can check it.

i do this and it is successful
first open help > install new software > write in he field of work with this url
https://dl-ssl.google.com/android/eclipse/
this will succeed i try it

Did you have a connection timeout originally?
I had this as I was using a weak connection. I got a 'good' connection and the same error appeared. Try removing the 's' from https and it will try to install to a new location.
Worked for me

Under linux, I have successfully added this repository by removing the files from eclipse folder. Of course make a backup before removing any files.
p2/org.eclipse.equinox.p2.engine/profileRegistry/pdtProfile.profile/.data/.settings/org.eclipse.equinox.p2.artifact.repository.prefs
p2/org.eclipse.equinox.p2.engine/profileRegistry/pdtProfile.profile/.data/.settings/org.eclipse.equinox.p2.metadata.repository.prefs
But before that I had same error. I was trying to add the repository to install plugin but instead i was receiving the error "Duplicate location" even if that record was not displayed in "Available software sites" window.
EDIT:
Careful. This will delete other update/install software locations. You could eventually search and replace existing links from files above. But I did it my way, faster ( i don't need other software repository locations)

Go to Help ->Install New Software and then click in "Available software sites", a list of sites and folders will appear to you, so look for the one you want to remove (https://dl-ssl.google.com/android/eclipse/), click at that, then click to remove. I did so and worked :)
Sorry by the bad English.

Help ->Install New Software then check for "What is already installed".
Uninstall those things and then restart your eclipse. And then follow the same procedure you
are currently following.

Related

Error: This Android SDK requires Android Developer Toolkit version 22.6.1 or above

I have installed adt version 22.6.1 already 2 days ago. It was working fine. Suddenly, When I open eclipse today, it keeps showing me following error:
This Android SDK requires Android Developer Toolkit version 22.6.1 or above. Current version is 22.2.1.v201309180102-833290. Please update ADT to the latest version.
Here is screenshot of my eclipse's Android SDK Manager :
I tried with following steps to resolve my issue as discussed in this Link
Help | Install new software
Select the ADT update site (there are two, one with http:// and one with https://. If one doesn't work, try the other.
Select the developer tools section and press next.
You should see a dialog that says This software is already installed, an update will be performed instead. Clicking OK will lead to 22.6.1 being installed.
But unfortunately it didn't work for me.
Here is a screenshot I am attaching which shows the error I am getting while updating the tools.
How can I get rid of it?
I have solved this issue yesterday.
Follow the steps :
Help -> Install New Software -> Add -> (Give any name suppose NewUpdate) -> add this url : https://dl-ssl.google.com/eclipse/plugin/4.2 -> OK
Now it will list the available updates, which should ideally be adt 20.x.x
Select the list items Let it be installed. Eclipse will restart and Its done.
I hope this will helpful for you :)
Yet, if someone is facing this issue, Then follow steps below:
download new stand alone SDK from android's developer site
Close eclipse if it is opened and copy new downloaded sdk in the same location where your already existing old sdk is. Must replace conflict files and keep rest.
No need to delete old sdk. Copying as in step 2 will update your Android Developer Toolkit version to 22.6.1 or above which is required and will keep already downloaded APIs.
Now start your eclipse, and the error will be gone forever. :)
if someone will have trouble doing so, leave me a comment, will try to guide.
I managed to resolve it by doing the following:
Downloaded latest ADT (Win x64)
Deleted my old ADT install (It got bugged when I simply tried to overwrite the existing files) - see this google issue
Copied the zip file to C:\ (since it was complaining about too long filenames while unpacking)
Unpacked to my ADT install folder.
Ran updates and SDK manager updates.
Now it's working, but I lost my pretty Eclipse theme. Oh, and the target adt is not being resolved, a problem for another topic.
Just delete the existing ADT and install new version of ADT.generally this problems occurs
when you update SDK using below link.
https://dl-ssl.google.com/android/eclipse/
The ADT Bundle on developer.android.com seems to me as out of date.
I fixed the same problem by downloading eclipse (Java EE was my choice, but you can choose your flavor) and Installing the Eclipse Plugin
this steps solve my problem:
go to Help -> Install New Software.
in the bottom box, click What is already installed? text.
then you will see Eclipse Installation Details box, please Uninstall all conflicts software, in my case I uninstall the following software:
Android DDMS
Android Development Tools
Android Hierarchy Viewer
Android Native Development
Android Traceview
Tracer for OpenGL ES
when uninstall complete, please restart your Eclipse.
after your Eclipse open, please follow again these steps:
go to Help -> Install New Software.
in Work with box, select or add {ADT Plugin - https://dl-ssl.google.com/android/eclipse}.
then check all available software.
click Next > to install newest software.
I hope this helps you :)
I use OSX and facing the problem for 2 days.
I solved the problem by following the steps below:
-Download ADT Bundle from https://developer.android.com/sdk/index.html
-Help -> Install New Software
-Write https://dl-ssl.google.com/android/eclipse/ then install Developer tools
-Restart eclipse and raised the error below:
Android SDK content Loader has encountered a problem.parseSdkContent failed
java.lang.NullPointeException
-Delete .android folder under user profile. Restart eclipse
No errors and 22.6.1 is installed.
For those who tried everything but didn't get any positive result. I did the following and it worked:
Uninstall the ADT by helping from following link:
Uninstalling Android ADT
Now you can follow the install new software to add ADT to your eclipse. This way you won't get any conflict since you uninstalled old version.
I currently have Eclipse and ADT installed in the same directory as
F:\eclipse
\eclipse\
\sdk\
I downloaded and installed the latest ADT to
C:\Users\Rick\AppData\Local\Android\android-sdk
I then copied the contents of the C:\Users\Rick\AppData\Local\Android\android-sdk into the F:\eclipse\sdk\ folder, and let it merge all folders and overwrite everything.
Now I have 22.6.1 and I don't have to re-download all the platform stuff again.
Today me and one of my friends faced the same problem, so I have tried many things like restarting eclipse, checking updates, etc. but none was working for me.
Then I found a solution from Here and it's working as a charm for me and also for my friend.
Follow the steps here:
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.
If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to
Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded.
Click Next. Read and accept the license agreements, then click
Finish.
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.
The "Install new Software" under help in Eclipse will NOT work because it conflicts with ver#22.
I just downloaded the new Eclipse bundle from:
Get the Android SDK - google site, extracted it in a new folder ant it is done.
It is working smoothly, no problems.
Few tips to save you time:
Backup your workspace (just in case) - personally didn't use this back.
Once you open the new eclipse.exe it will ask you to select a workspace - just brows to your ols workspace and it will import all your projects (no problems).
In order to save time of download and install of the SDK again, I Cut & Paste the OLD SDK library from the previous bundle directory to the new one (Close your new Eclipse first).
When you re-open Eclipse, you may receive an error message saying that Eclipse can't find the SDK directory. It will ask you to open "Preferences". Once open, browse to the new SDK directory (the one that you just copied). Doing this will save you hours of re-installing all the SDK updates that you did on the previous Eclipse.
Have fun, it is really not a big deal.

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.

Why doesn't Android appear in Eclipses' preferences?

I've installed the Android Developer tools as per the official instructions.
Why doesn't the tab appear in Windows->Preferences, as they said it should?
Remove the plugin, then restart as follows:
eclipse -clean
Now try reinstalling the ADT from the online installation
OR
Head over to Help -> Install New Software. Click on Available software sites. Delete the Android repo. Uncheck Indigo & Eclipse updates & recheck them. Now head back to Help -> Check for updates. Once done, add the Android repo again. Accept the license & you should be good to go.
Happy Coding..
This won't fix your issue directly, but I suggest your take a look at the MOTODEV STUDIO for Android. Essentially, it's a customized Eclipse IDE with all the Android tools preinstalled and many more of their own tools for app validation. I find their tools usefull, especially the code snippets and the app validator. I believe you will need to register to download, but it's a quick and free process and you can always use a temporary email service. Anyway, this should allow you to get up and running until you find your bug (even if I don't see why you'd switch back to plain eclipse).
MOTODEV STUDIO for ANDROID
Check your plugins directory, located in the folder you extracted the original eclipse zip file to.
For me it is located in
eclipse-java-indigo-SR2-win32-x86_64\eclipse\plugins
and I see the following files related to the ADT plugin
com.android.ide.eclipse.adt_18.0.0.v201203301601-306762.jar
com.android.ide.eclipse.ddms_18.0.0.v201203301601-306762.jar
com.android.ide.eclipse.hierarchyviewer_18.0.0.v201203301601-306762.jar
com.android.ide.eclipse.traceview_18.0.0.v201203301601-306762.jar
overlay.com.android.ide.eclipse.adt.overlay_18.0.0.v201203301601-306762.jar
Make sure you have files similar to these.
Now open a shell and run the following in your eclipse install directory
eclipse.exe -console
you should get the osgi (Open Services Gateway Initiative) console. Now you can see whether your bundles have unresolved dependencies and start them manually. So try
osgi> diag com.android.ide.eclipse.adt
and
osgi> start com.android.ide.eclipse.adt
and check the output.
Have you restarted eclipse after install of ADT plugin
I see you are on Windows, I had the same problem and in my case I had to run Eclipse as administrator to install the plugin, so uninstall it, restart eclipse as administrator and reinstall it. You don't need afterward to run eclipse as administrator just to use the plugin, its only required for the installation.
The root cause might be folders ownership problems, as quoted by others, when I had the same problem I tried setting folders ownership but I could not apply my permission changes so running as administrator eclipse was the easy way for me. If you are not allowed to run eclipse as administrator on your station then you should search on the ADT documentation which folder should be owned by the user running Eclipse.
Check the answers in this post:
Maybe going to choose Help > Check for Updates or reinstalling ADT plugin again works.
There are chances that the plugin may not have been correctly installed. Try reinstalling the ADT. Or in the help menu check for the updates nad try installing through it.
I hope it 'll solve your problem.
Which you are using eclipse id , i think you are not using proper id. For better reference visit below links
Hello-world-example
Installing-adt
Same problem here. I've solved it like these:
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.
If you have trouble acquiring the plugin, try using "http" in the
Location URL, instead of "https" (https is preferred for security
reasons).
In the Available Software dialog, select the checkbox next to
Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded.
Click Next. Read and accept the license agreements, then click
Finish.
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.
Followed from here

Eclipse with android plugin - Blocked at "calculating requirements and dependencies"

I have a problem during the installation of Android in Eclipse (Indigo and Helios, i've tried many different versions). When i search the plugin with the adress http://dl-ssl.google.com/android/eclipse/ , or localy (with the archive), it doesn't work.
It found the developpment tools, but it block at "calculating requirements and dependencies".
What's the problem ?
If you are installing from a local site, uncheck "Contact all update sites during install to find required software".
I had the same issue with win 7 x64 and any version of Eclipse. It's because it cannot connect to the Internet, sometimes it's just because of your firewall blocking its Internet access. But most probably, if it isn't the case, you need to go to your Eclipse preferences, General -> Network Connections -> choose Direct from drop down menu => everything should be unchecked now. It was the only thing that helped me on Win 7 x64. I don't have such issues on Win XP.
I had exactly the same problem, eclipse was stuck at "calculating requirements and dependencies " for ages.I searched the web and found a lot of solutions but none worked for me. So i booted in safe mode with networking (press F8) then started eclipse. It installed in 2 minutes. My AVG antivirus was blocking eclipse from accessing the internet. Hope it works for you too
Its causes because of these two reasons...
Your antivirus is not authoring eclipse to download the require data.
Or your firewall not allowing you to access downloading server.
Solution:
Simply open your antivirus panel "stop its working till the data is not installed".
And if 1st one do not works then open firewall setting and make it off till the data is not installed...
I had same problem, and I solve it.
Let's check below list.
Eclipse have blocked by your Anti-virus program or Fire wall
If you have checked, then UNCHECK 'contact all update sites ...' item.
Please click image button & refer it. (Marked with red line).
enter image description here
I had this happen when attempting to install an update after one of the update sites I had added to my Eclipse install went dead (the plugin provider changed the URLs for accessing their update site).
If it's due to a dead update site, it can often be solved by unchecking "contact all update sites during the install to find required software".
If you know which update site is causing the issue, and want to delete/disable it, or if you need access to other update sites during the install, you can temporarily disable or permanently remove update sites from Preferences->Install/Update->Available Software Sites.
I had the same problem on my Ubuntu. I guess you can solve your problem in the following way:
Load Eclipse. Click on Help > Install new software > Add and then for v3.7.x in the name box enter Indigo and in the URL box enter http://download.eclipse.org/releases/indigo then just follow the instructions to install the ADT plug-in and it will work.
If you are using other versions of Eclipse you need to change the name and url to the following -
v3.7.x Indigo - http://download.eclipse.org/releases/indigo
v3.6.x Helios - http://download.eclipse.org/releases/helios
I had a similar problem while attempting to install an Eclipse Plugin - ShellEd. It got stuck at the same point. As it points out the network problem, I simply disabled my WiFi connection while installing from a downloaded archive and the installation gets through.
Or just quit / relaunch eclipse, attempt to update it, fiddle with it until it will eventually install ADT

Android SDK Manager gives "Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml" error when selecting repository

I'm trying to install a platform but when I open Android Manager then I click Available Software then select the
https://dl-ssl.google.com/android/repository/repository.xml repository
I get this error:
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml
I have also tried downloading by clicking on force "http:" for all "https:" downloads on settings panel but it still doesn't help.
I'm working on Windows Vista.
Try this solution and it worked. this problem is caused because ADB is unable to connect to the android servers to fetch updates. (If at home try turning off firewall)
Goto Android SDK Manager
c://android-sdk-windows/ open
SDK-Manager
Click Settings - Will be
asked for a proxy.
If have one enter
the IP address and the port number.
If not turn off your firewall.
Check
"Force https://... " (to force SDK Manager to use http, not https)
This should work immediately.
If you enter the URL in a browser and then look at the source code of the page you will see that an XML document is returned.
The reason why that URL would work in a browser but not in the android manager might be that you are required to specify a proxy server. In Eclipse (3.5.2) the proxy settings can be found here: "Window" -> "Preferences" -> "General" -> "Network Connections"
All that was necessary for me, a Ubuntu user, was to change the owner of the ~/.android directory. In a terminal type the following command:
sudo chown -R username:username ~/.android
Obviously, you must replace "username" (twice) with your username.
I wasn't sure if I should post this as an answer because the original poster's question was concerning Windows Vista, not Ubuntu. However I found this post whilst searching for the answer on Ubuntu so I believe it is pertinent. I don't have sufficient reputation to comment on +Maher Gamal's answer, though, which is what lead me to this answer. Hopefully someone else finds it useful!
In Mac OS X, the solution is creating the file androidtool.cfg in our user .android folder and then add this line. Sure it is working also for Linux
sdkman.force.http=true
I hope that helps!
Open Android SDK Manager and open menu Tools->Options
in Proxy Setting Part
Set your proxy and ok
Investigating this error on my new Win 7 laptop, I found my ADT plugin to be missing. By adding this I solved the problem:
Downloading the ADT Plugin
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).
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
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.
I am using Kaspersky. I just turned it off and the issue was solved!
I got the solution for the Android Studio installation after trying everything that I could find on the Internet. If you're using Android Studio and getting this error:
Find [Path_to_Android_SDK]\sdk\tools\android.bat.
In my case, it was in C:\Users\Nathan\AppData\Local\Android\android-studio\sdk\tools\android.bat.
Right-click it, hit Edit, and scroll all the way down to the bottom.
Find where it says: call %java_exe% %REMOTE_DEBUG% ...
Replace that with call %java_exe% -Djava.net.preferIPv4Stack=true %REMOTE_DEBUG% ...
Restart Android Studio/SDK and everything works. This fixed many issues for me, including being unable to fetch XML files or create new projects.
I had the same problem: the latest update failed to install because it couldn't
rename the tools folder in android-sdk-windows. I'm using AVG antivirus and
disabling it didn't help, but I don't think it had anything to do with the AV program
anyway.
Fact is, running the Android SDK setup apparently uses items in the
"android-sdk-windows\tools" directory. I'm on Win Vista x32 so maybe that causes some
unique situation - I'm not sure.
Solution:
I made a copy of the tools folder itself (keeping it at the same directory tree
level, thus "tools" and "tools-copy" were both in the "android-sdk-windows" folder).
I ran Android.bat from that copy
I ran the update without problems (it updated the original,
not-being-used-at-the-moment tools folder, among whatever other items it needed to).
I closed the SDK, deleted the folder (I had to kill the adb.exe process first - not
sure why that always persists but you can't delete the folder without doing that).
I restarted the SDK from the normal (now-updated) tools folder. Worked like a charm!
Note that simply killing adb.exe was NOT sufficient to get around the original
issue... only by copying the tools folder and using the copy to run Android for the
duration of the update process was enough to rectify the problem.
I hope this helps others... it's quite vexing to have to spend time resolving basic
issues like this just to run an update.
If you open /Users/{your name}/android sdks/tools/android (double click it), then click on "Android SDK Manager" menu and then "Preferences" and then you can change your proxy settings specifically for Android SDK Manager. These proxy settings also apply to "Android SDK Manager" if used within Eclipse.
After 7 long hours of searching I finally found the way!!
None of the above solutions worked, only one of them pointed towards the issue!
If you are on Win7, then your Firewall blocks the SDK Manager from retrieving the addon list.
You will have to add "android.bat" and "java.exe" to the trusted files and bingo! everything will start working!!
I had the same problem, made all the workarounds you advised: still the same error.
I updated Eclipse via "Help / Check for updates" and now everything is ok.
This update brought a completely new version of the Android SDK Manager.
Also, try to turn off your firewall and try to update with link.
I had the same problem. I use Ubuntu 12.04. I tried disabling ipv6.
Modify the /etc/sysctl.conf and add the following:
#disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Then restart the machine and check. I think this may be a ipv6 issue even in Windows OS.
I had a similar situation where I had the proxy settings already set and the SDK manager wasn't able to modify them permanently. Modifying manually the ~/.android/androidtool.cfg file fixed the issue.
Had the same issue on 64 bit win7 machine on company network behind proxy with automatically detected settings.
After a number of trials and failures the following workaround proved to be successful:
sharing my phone's wifi internet connection via USB
Best regards,
Robert
I found another way without setting proxy. I'm currently using an antivirus which has a firewall program. Then, I turn off this firewall and now I can fetch that URL.
If still doesn't work, try to turn off Firewall on your PC, such as Windows Firewall.

Categories

Resources