Upgrading Eclipse 4.3 Kepler to 4.4 Luna

Eclipse Luna logoEclipse 4.4 Luna was recently released along with Google’s Android ADT 23 upgrade. Just like the previous version, upgrading is fairly simple, although I ran into an error on one of my PCs that needed a manual fix. Some issues with ADT and the Android SDK can also be expected as some file paths changed from the previous version.

Upgrading Eclipse

The upgrade process is exactly the same as before: change your software repositories, check for updates and install them. If you’re using other repos, it is a good idea to export the URLs, just in case the repo settings get wiped after the update, which seems to happen often for me. It is recommended to install all updates to Kepler before upgrading to Luna.

Read my previous post with detailed instructions and screenshots if you’re not sure where to look, just make sure you use the new URLs listed here.

Eclipse 4.4 Luna repositories:

In case you’re using Eclipse for Android development, the ADT repo hasn’t changed:

As with 4.3 Kepler, the splash screen will not change on the first restart after the upgrade. Just restart the IDE again to confirm that you’re running the latest version.

Error updating eclipse.exe

One of my Windows PCs failed the update process with the following error:

An error occurred while uninstalling
session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]org.eclipse.sdk.ide.executable.win32.win32.x86_64 4.3.1.M20130911-1000 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction).
Backup of file D:\Utils\Eclipse\eclipse.exe failed.
Can not remove : D:\Utils\Eclipse\eclipse.exe

I found a couple of related bug reports here and here. At this point your Eclipse installation is only partially upgraded, follow these steps to fix the problem:

  • Restart Eclipse. Don’t be alarmed/misled by the Luna splash screen, the core module is still 4.3 (as seen on the about screen), but is should still be working.
  • While Eclipse is still running, find and kill the eclipse.exe process via the Windows task manager
  • Rename/delete eclipse.exe from your Eclipse folder.
  • Switch back to the Eclipse window and retry upgrading by clicking on Help / Check for Updates.

This time it should complete successfully and the Luna executable should be created in your Eclipse folder. After the upgrade completes, Eclipse tells you that it needs to be restarted. The IDE will close, but it won’t restart automatically. Simply run your new eclipse.exe, and your installation should be fully upgraded.

Updating Android ADT

For some reason the latest ADT refused to install as an update for me. After updating the SDK tools through the Android SDK Manager, Eclipse told me that it needed an updated version of ADT, but checking for updates found nothing. I had to force an installation of the new ADT packages as new software, then Eclipse offered to remove the old, conflicting packages:

  • In Eclipse, click on Help / Install New Software…
  • Select your ADT repo on the top, check the box next to the required packages under Developer Tools, then click Next:
  • Select the second radio option (Update my installation…), click Next:
  • Review packages, click Next:
  • Accept licenses, then click Finish to start updating:

Android compilation issues with version 23

After the upgrade, some of your Android projects might fail to build due to a build path error. The reason is that annotations.jar has been moved to a different folder in the Android SDK.

  • One possible fix is to change your project’s target API level to 19 (Android 4.4.2). You can still keep the minimum version lower in your manifest to support older Android versions in your build.
  • If you can’t or don’t want to do the above, simply copy [SDK folder]\extras\android\support\annotations\android-support-annotations.jar to [SDK folder]\tools\support\annotations.jar.

Your project should build successfully.

 

Share Button
Posted in Blog Tagged with: , , ,
0 comments on “Upgrading Eclipse 4.3 Kepler to 4.4 Luna
1 Pings/Trackbacks for "Upgrading Eclipse 4.3 Kepler to 4.4 Luna"
  1. […] for 4.4 Luna? Have a look at my new post with updated […]

Leave a Reply