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
Related
Just got the new Android Studio but it won't connect for updates. When I go to Help>Check for Updates... I get a pop-up sayin:
Connection failed. Please check your network connection and try again.
I tried changing my network settings around (Static/DHCP).
I tried "Auto-Detect Proxy settings".
I tried Adding "studio.exe" to my inbound/outbound rules of windows
firewall, I also have "Java(TM) Platform SE binary" added (The VM
running Idea).
I tried looking around my hosts file to see if I messed something up
in there.
I run normal IDEA and my updates connect, but obviously tells me there is no new updates.
Has anyone else run into this problem or found a solution to this? My colleagues at work here did not have this problem at all, only the "JAVA_HOME" issue on one of my colleagues' machines.
The following steps may help to fix this issue:
Open configuration
Select Settings
Select HTTP Proxy
Change no proxy to auto-direct proxy settings
Click check connection . check with any Site
done
Looks like it is a bug in Android Studio. Others are having the same problem, check out here and here. It's worth remembering that v0.1 is an Early Access Preview as described on the official Android web site.
I have checked the base IDE's FAQs and found an answer that helped me out: edit the file ending with .vmoption in Program Files (x86)\Android\android-studio\bin and add the following option:
-Djava.net.preferIPv4Stack=true
or if you prefer IPv6:
-Djava.net.preferIPv6Addresses=true
It works for me.
Source: http://intellij-support.jetbrains.com/entries/23403071-Network-connectivity-issues-when-running-under-Java-1-7
None of these answers helped me nor did trying to manually add the downloads certs to my java and jdk keystores. If you are in the same spot as me, try editing your vmoptions files to include the paths.
On Windows you need to open an editor with admin privs and you can find the files here:
Program Files (x86)\Android\android-studio\bin
Add these two lines to whichever version of AS you use or both to be sure.
-Didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml
-Didea.patches.url=http://dl.google.com/android/studio/patches/
I discovered this via a note from a Google dev: https://code.google.com/p/android/issues/detail?id=74610&q=android%20studio%20connection%20failed&sort=-stars&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
I am not sure if our problems are identical, but when I had trouble updating Android Studio I ran it as administrator and then tried to update and it worked. I solved a similar problem on Eclipse in the same manner.
I updated my Android Studio to 1.5.1 and met the same problem.
I'm using ShadowSocks and I guess it caused this issue. I changed HTTP Proxy setting from no proxy to auto detect and it was solved. You can click "Check connection" and enter any URL to test whether auto proxy detection works.
I can update it using the astrill VPN. its website.
Step 1 is vague. Please indicate where this "Open Configuration" step occurs. Is this the Internet Properties for the computer, or some dialog buried deep within the bowels of Android Studio? I have searched and cannot find anything called "Configuration" or "Open Configuration" within Android Studio. Possible candidates might be (from the available / non-grayed out menu items):
File -> Settings
File -> Other Settings -> Default Settings...
File -> Other Settings -> Configure plugins...
Run -> Edit Configurations...
Help -> Configure Debug Log Settings
However none of these choices offer up anything that allows you to follow the indicated next steps.
I am on Windows 7, running Android Studio (Preview) 0.5.2 and the only reason I'm trying to use AS is because of the stupid logcat scroll problem in Eclipse (another crappy editor).
If someone could recommend a solution to the AS update / connection issue (yes, I checked, the other solutions on here don't work either), Eclipse non-locking scroll lock (yes, I checked, the solutions on here don't work), or an actual functioning Android plugin for NetBeans, I'd be extremely grateful. Thanks!
I just updated my ADT plugin for Ecipse to v21 but after a restart it is not working.
Somehow the plugin's are version 21.0.0.v201210310015-519525, but the SDK verification is telling me that I am on v20.2.v201207191942-407447 and forcing me to update.
I've tried removing the plugin but that's not possible trough the help > about > Installation details. Reverting back to older installations let me reinstall the update but with the same result.
Im using Eclipse Juno 20120614-1722
can anyone point me in the direction to fix this?
UPDATE:
As it turned out, Windows 7 UAC was at play here. I thought i was running eclipse as admin, but i wasn't. What the strange part is, is that Eclipse tried to install the updates but fails without ever mentioning that it does not have the right to changes files without administrative rights. the next time you boot up, the installation thinks its updated but the files are not.
Solution:
Run in Administrator mode (by setting it as standard in your shortcut
or turn UAC off)
Roll back to a previous installation (Help > About
Eclipse > Installation Details > Installation History > (select
previous installation) Revert )
Reboot Eclipse (be sure to have Administrator rights)
Update without a problem :)
you have to update the eclipse so that it support the latest ADT.
To do this you have to select Help->Install New Software and then work with this link
update site: https://dl-ssl.google.com/android/eclipse/.
After that update Developer Tools.
As it turned out, Windows 7 UAC was at play here. I thought i was running eclipse as admin, but i wasn't. What the strange part is, is that Eclipse tried to install the updates but fails without ever mentioning that it does not have the right to changes files without administrative rights. the next time you boot up, the installation thinks its updated but the files are not.
Solution:
Run in Administrator mode (by setting it as standard in your shortcut or turn UAC off)
Roll back to a previous installation (Help > About Eclipse > Installation Details > Installation History > (select previous installation) Revert )
Reboot Eclipse (be sure to have Administrator rights)
Update without a problem :)
As Kevin Grant said. I update the component one by one, and it works for me.
My eclipse is Juno Version: 4.2.1 Build id: M20120914-1800 installed with Fedora 17.
I notice that I can't see the adt in "Installed Software" tab in "Installation Details". I have to believe it's juno's fault. Because I already upgrade adt for eclipse in other workstation running eclipse indigo.
I ran into the same problem. I did quite a few things as you suggested, deleted folders from plugins / metadata / features, none seemed to work. I googled how to uninstall ADT, and in the same place you uninstall it, theres a button to update it.
Uninstalling Android ADT
Just select anything that isn't tools 21 and update it individually. Worked for me (I started with updating ADT)
The following answer here worked for me on several machines that had this issue and does not require uninstalling or any other monkey business.
"go to the SDK Manager and going to FILE -> RELOAD solved the problem"
Got the same problem after update on SDK Manager v21.0 to v21.1. I had tried the suggested solution but didn't work for me. But I found a quick solution from developer.android website itself, I followed the "Troubleshooting Installation" part which you can find here.
for a quick preview of solution:
1. Download the ADT Plugin zip file (do not unpack it).
2. Start Eclipse, then select Help > Install New Software.
3. Click Add, in the top-right corner.
4. In the Add Repository dialog, click Archive.
5. Select the downloaded ADT-21.1.0.zip file and click OK.
6. Enter "ADT Plugin" for the name and click OK.
7. In the Available Software dialog, select the checkbox next to Developer Tools and click Next. (I add, also check the NDK)
8. In the next window, you'll see a list of the tools to be downloaded. Click Next.
9. 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.
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
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.
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.