Unsupported template dependency: Upgrade your Android Eclipse plugin
所需的版本为空(在某些情况下显示为8)。安装的版本是18。
我已经尝试过许多我在这里找到的解决方案,如:
>以管理员身份运行SDK管理器
>以管理员身份运行Eclipse
>从SDK附加文件夹重新安装支持组件,然后重新启动Eclipse,
这些都没有为我工作。
还有其他解决方案吗?
- Use Eclipse > Help > Check for Updates to get ADT 22.2.1
- Use SDK Manager to get Tools 22.2.1
You need both parts to fix the issue. The ADT bundle and the installer package on 07000 have been updated too.
(从here)
更新:bug report现在有一个response附加固定的模板文件和以下注释:
This one is my bad. I was in the middle of changing the dependency system used by the templates and a transient state got picked up into this tools build. The templates have settled in the AOSP master branch.
I’ve attached a snapshot of the current Activities templates. Replacing your sdk/tools/templates/activities folder with the contents of this zip should resolve this issue.
I apologize for the inconvenience.
我以前的解决方法如下。
空白活动:
>编辑< sdk> /tools/templates/activities/BlankActivity/template.xml
>注释掉依赖:
<!--<dependency name="appcompat" version="v7" />-->
主/详细流程:
>编辑< sdk> /tools/templates/activities/MasterDetailFlow/template.xml
>注释掉依赖关系:
<!--<dependency name="support" version="v4" /> <dependency name="android-support-v4" revision="8" />-->
最后:
>重新启动Eclipse
如果需要,将android-support-v4.jar从< sdk> / extras / support / v4复制到您的libs。