Search code examples
androideclipseadb

Eclipse Juno, neverending Android toolkit update


I haven't done any Android development for a while. During this while I updated my Galaxy Nexus (the first version) to Android 4.2.2. Yesterday I wanted to work on my game and I connected my mobile. I wrote some code, clicked run and the device appeared in the device selector, but instead of the familiar "Samsung Galaxy Something" I got some seemingly random number (it was probably a serial code for something) and the device was marked as offline, and it was not selectable for deploy and debug. Interestingly, the device itself was enabled for USB debug, the little monster was clearly visible in the upper left corner of the screen and everything seemed fine.

I tried to switch USB debug off and on again, with no success.

I tried to kill and restore the ADB server.

I tried to change the USB cable; I learned that there are A and B cables and in some cases it may be important to use the right one (I left the Samsung cable in another continent).

I tried to update the Android SDK with the Android update manager; after doing this the device when connected would prompt me to accept USB debug requests, so after all something has changed in a way. However, the device name still would not show up in the device manager and the status was still offline. Then, Eclipse started complaining that with the new SDK the Android Development Toolkit should be updated to version 21.

I ran the Eclipse update manager and it is still hanging at "Contacting Software Sites" at 50% after several hours.

I tried to add -Declipse.p2.mirrors=false at the end of eclipse.ini, but it doesn't seem to be faster.

I'm especially aware of this and this, and nothing of what they said there helped.

Edit

Still at 50%, after one hour. I'll also try some of these at some point.

Edit

Cool, it finally started downloading the updates and after a while it crashed.

An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,com.android.ide.eclipse.adt,21.1.0.v201302060044-569685
No repository found containing: osgi.bundle,com.android.ide.eclipse.base,21.1.0.v201302060044-569685
No repository found containing: osgi.bundle,com.android.ide.eclipse.ddms,21.1.0.v201302060044-569685
No repository found containing: osgi.bundle,com.android.ide.eclipse.gldebugger,21.1.0.v201302060044-569685
No repository found containing: osgi.bundle,com.android.ide.eclipse.hierarchyviewer,21.1.0.v201302060044-569685
No repository found containing: osgi.bundle,com.android.ide.eclipse.traceview,21.1.0.v201302060044-569685
No repository found containing: osgi.bundle,overlay.com.android.ide.eclipse.adt.overlay,21.1.0.v201302060044-569685
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.adt,21.1.0.v201302060044-569685
No repository found containing: osgi.bundle,com.android.ide.eclipse.adt.package,21.1.0.v201302060044-569685
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.ddms,21.1.0.v201302060044-569685
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.gldebugger,21.1.0.v201302060044-569685
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.hierarchyviewer,21.1.0.v201302060044-569685
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.traceview,21.1.0.v201302060044-569685

Solution

  • I also faced the same problem when i updated my sdk took kit and tried to update ADT , For downloading ADT 21.1 you need Helios 3.62 version or Higher I guess .

    The best way is to download the Desire update using zip and then update using that zip file. I saved my day using this method only. Remove the internet connection while updating using local zip file

    This might Help :)