“不支持的模板依赖项:使用 SDK Tools v22 升级您的 Android Eclipse 插件”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18845017/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:11:14  来源:igfitidea点击:

'Unsupported template dependency: Upgrade your Android Eclipse plugin' with SDK Tools v22

androideclipsesdk

提问by Swapnil Ghosh

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:

我最近将我的 Android SDK 工具升级到版本 22。但是每当我尝试在 Eclipse 中创建一个新项目时,我都会收到一条错误消息:

Unsupported template dependency: Upgrade your Android Eclipse plugin

不支持的模板依赖:升级你的 Android Eclipse 插件

How can I fix this problem?

我该如何解决这个问题?

回答by lulu88

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.

http://dl-ssl.google.com/android/repository/tools_r22-windows.zip下载,解压缩并将 /tools 文件夹替换为这个文件夹以降级 sdk 工具。版本 22 中有一个错误。

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

对于 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

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

回答by M.Sameer

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

项目成员发表评论 #55,无需下载 SDK 工具即可解决此问题。只需下载活动模板并将sdk/tools/templates/activities文件夹替换为 ZIP 文件的内容即可。

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

您可能需要使用-clean选项重新启动 Eclipse才能使其工作。

回答by Boardy

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

从 Eclipse 转到帮助 > 检查更新并安装 Eclipse 显示的任何更新。

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

更新 SDK 组件后,您通常还需要更新 Eclipse 插件。

回答by Deepak Agrawal

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.

昨天当我升级到最新的 Android SDK 工具 (22.2) 时,我开始面临同样的问题。所以我恢复了更改,现在正在使用 Android SDK Tool (22.0.5) 并且它工作正常。

Try downgrading Android SDK Tools.

尝试降级 Android SDK 工具。