26

I recently upgraded my Android SDK Tools to version 22. But whenever I am trying to create a new project in Eclipse, I get an error message:

Unsupported template dependency: Upgrade your Android Eclipse plugin

How can I fix this problem?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Swapnil Ghosh
  • 261
  • 1
  • 3
  • 3
  • Does your dialog show blank in the 'Required Version' field, which is what I'm seeing? It would explain why the upgrade version on the dialog doesn't do anything. – JulianSymes Sep 17 '13 at 11:47
  • 2
    The following link helped me evade the problem: http://stackoverflow.com/questions/18839428/issues-when-create-new-android-application-project-in-eclipse/18849033#18849033 – Ravi Sep 17 '13 at 13:27

4 Answers4

24

Download from http://dl-ssl.google.com/android/repository/tools_r22-windows.zip, unzip it and replace the /tools folder with this one to downgrade the sdk tools. There's a bug in version 22.

For Mac http://dl-ssl.google.com/android/repository/tools_r22-macosx.zip

For Linux: http://dl-ssl.google.com/android/repository/tools_r22-linux.zip

Community
  • 1
  • 1
lulu88
  • 1,694
  • 5
  • 27
  • 41
  • 1
    This left me with an error saying ...tools/emulator not found, which went away when I copied 'emulator' from the 'bad' version of tools that I had moved out of the way. (OS X Mountain Lion by the way) – JulianSymes Sep 17 '13 at 12:46
  • @user1681572 try again, it works for me on 10.7.5. – Adam Sep 18 '13 at 08:49
  • 1
    It's a *known* issue being worked at the moment. See https://code.google.com/p/android/issues/detail?id=60149 for progress and workaround discussion. – JulianSymes Sep 18 '13 at 10:21
  • 1
    +1 Thank you for your valuable time :) – swiftBoy Sep 18 '13 at 11:32
6

The project member posted comment #55 that solves this issue without downloading the SDK tools. Just download the activity templates and replace the sdk/tools/templates/activities folder with the contents of the ZIP file.

You may need to restart Eclipse with the -clean option for it to work.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
M.Sameer
  • 3,072
  • 1
  • 24
  • 37
  • +1 for explaining the cause of this problem, thx. By the way, this answer would be more complete if you add a direct link to the file need to fix the problem. – Roberto Lombardini Sep 19 '13 at 17:08
1

From Eclipse go to Help > Check for updates and install any of the updates that Eclipse shows.

Once you update the SDK components you always usually need to update the Eclipse plugins as well.

Boardy
  • 35,417
  • 104
  • 256
  • 447
  • 2
    This made no difference for me. – JulianSymes Sep 17 '13 at 11:42
  • Run the SDK manager again and ensure everything is up to date, and run the eclipse updater again. Maybe https://code.google.com/p/android/issues/detail?id=60149 will also help – Boardy Sep 17 '13 at 12:21
0

I started facing the same issue yesterday when I upgraded to the latest Android SDK Tools (22.2). So I reverted back the changes and am now using Android SDK Tool (22.0.5) and it works fine.

Try downgrading Android SDK Tools.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Deepak Agrawal
  • 136
  • 1
  • 7