Thursday, October 14, 2010

Eclipse ADT plugin on Ubuntu 10.10 after upgrade from 10.04

Recently, after upgrading my Ubuntu to 10.10 from 10.04, I found that my Eclipse Android Development Toolkit plugin stopped working. The Eclipse Help->Installation Details Menu would list ADT under Installed Software Tab. However, neither the Features Tab nor the Plug-ins Tab would list ADT. I noticed that my SVN plugin was not showing up after the upgrade too. Forums such as http://forum.xda-developers.com/showthread.php?p=8613858 were not useful either -- they suggested uninstalling Eclipse which came with Ubuntu 10.10 distribution and replacing it with stock Eclipse from eclipse.org website. I solved this without reinstalling eclipse although, plugins need to reinstalled.

An inotifywatch -r on the ~/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins directory, and subsequently starting eclipse revealed that eclipse was not even trying to read any plugins from that directory. Apparently something in Ubuntu 10.10 build of Eclipse has changed which causes it ignore the previously installed plugins. So I moved out my old ~/.eclipse/org.eclipse.platform_3.5.0_155965261/ directory to /tmp. Restarted my Eclipse and reinstalled my ADT and other plugins. Here are the steps:
  1. Exit eclipse if running
  2. Delete ~/.eclipse/org.eclipse.platform_3.5.0_155965261
  3. Start eclipse
  4. Open Help->Install New Software
  5. Install GEF plugin from http://download.eclipse.org/tools/gef/updates/releases. Note that GEF is required for ADT
  6. Install ADT plugin from https://dl-ssl.google.com/android/eclipse

You should have a working ADT in Eclipse on an upgraded Ubuntu 10.10.

22 comments:

Chrisdadswell said...

Thanks very much for posting this. It has been foxing me for some time.
Chris.

Eli said...

Same here, worked like a charm. Thanks!

Unknown said...

Works great!

Enginerd said...

Thanks for the info, helped me out a bunch. Note that you'll need to re-add all your software sources, such as http://download.eclipse.org/releases/galileo/ (this one should have GEF).

Anonymous said...

thanks very much, you saved me from a lot of trouble!!!

VINAY said...

Thanks man... U saved me...
Upgrading to ubuntu 10.10 scared the shit out of me. Finally u rescued me.
Thanks again...

VINAY said...

Thanks man... U saved me...
Upgrading to ubuntu 10.10 scared the shit out of me. Finally u rescued me.
Thanks again...

dan said...

You sir, are a life saver.

daf said...

Brilliant. Thanks. I couldn't figure out why my newly-installed (on an old /home) ADT was just not coming to the party.

Marcelo Bello said...

Thanks! Was facing same issue.

Mike said...

This has been driving me crazy.. Thanks!

Unknown said...

Thank you, this DO save me. By the way, why each time I, after updating, Ubuntu would give some trouble to me :-(

Sharavsambuu Gunchinish said...

It works.
Thank you very much!!!

Unknown said...

Very helpful.

Thank you very much.. ;)

Logan Koester said...

"This has been driving me crazy.. Thanks!"

Second that!

Kalpesh Patel said...

Thanks a bunch. You saved me some time.

Avi said...

Thanks a lot! simply works

solitario said...

really? no other option but to reinstall?

Raymi T. Eldby said...

Thank youuu :D

Unknown said...

i have given the link for installing ADT but it is always stuck when calculating dependencies and requirements... just in the start... i have tried restarting eclipse but same problem..

Unknown said...

i have tries your method but im stuck at calculating requirements and dependencies for Developer tools and NDK... it always stuck right in the start... it never calculates to start installation

Chaki_Black said...

Thanks, Mr. Wizzard