ADT 22.2新应用程序向导:不支持的模板依赖性:升级Android Eclipse插件

时间:2023-01-24 16:57:49

I found some answers to that issue but none worked for me. When getting the last screen in a new project creation, I'm getting the next message:

我找到了一些问题的答案,但没有一个对我有用。在新项目创建中获取最后一个屏幕时,我收到下一条消息:

Unsupported template dependency: Upgrade your Android Eclipse plugin

不受支持的模板依赖性:升级您的Android Eclipse插件

The required version is empty (in some cases appears as 8). The installed version is 18.

所需版本为空(在某些情况下显示为8)。安装的版本是18。

I already tried many of the solutions I found here, like:

我已经尝试了很多我在这里找到的解决方案,例如:

  • Run the SDK manager as administrator
  • 以管理员身份运行SDK管理器
  • Run Eclipse as administrator
  • 以管理员身份运行Eclipse
  • Re-install the support components from the SDK extra folder and then restart Eclipse,
  • 从SDK额外文件夹重新安装支持组件,然后重新启动Eclipse,

None of these didn't work for me.

这些都不适合我。

Is there another solution?

还有其他解决方案吗?

8 个解决方案

#1


48  

Update 2: Now (2013-09-19T17:00:00Z) there's an ADT 22.2.1 and Tools 22.2.1 updates available that fix this issue:

更新2:现在(2013-09-19T17:00:00Z)有一个ADT 22.2.1和工具22.2.1更新可用于修复此问题:

  • Use Eclipse > Help > Check for Updates to get ADT 22.2.1
  • 使用Eclipse>帮助>检查更新以获取ADT 22.2.1
  • Use SDK Manager to get Tools 22.2.1
  • 使用SDK Manager获取工具22.2.1

You need both parts to fix the issue. The ADT bundle and the installer package on http://developer.android.com/sdk/index.html have been updated too.

您需要这两个部分来解决问题。 http://developer.android.com/sdk/index.html上的ADT软件包和安装程序包也已更新。

(From here)

(从这里)


Update: The bug report now has a response with fixed template files attached and the following comments:

更新:错误报告现在有一个附加固定模板文件的响应和以下注释:

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.

这个是我的坏。我正在改变模板使用的依赖系统,并将一个瞬态状态纳入到这个工具构建中。模板已在AOSP主分支中结算。

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.

我附上了当前活动模板的快照。用这个zip的内容替换你的sdk / tools / templates / activities文件夹可以解决这个问题。

I apologize for the inconvenience.

我带来的不便表示歉意。

My older workaround below.

我的旧解决方法如下。


Workaround to the bug:

解决bug的方法:

For Blank Activity:

空白活动:

  1. Edit <sdk>/tools/templates/activities/BlankActivity/template.xml

    编辑 /tools/templates/activities/BlankActivity/template.xml

  2. Comment out the dependency:

    注释掉依赖:

    <!--<dependency name="appcompat" version="v7" />-->
    

For Master/Detail Flow:

对于主/细节流程:

  1. Edit <sdk>/tools/templates/activities/MasterDetailFlow/template.xml

    编辑 /tools/templates/activities/MasterDetailFlow/template.xml

  2. Comment out the dependencies:

    注释掉依赖项:

    <!--<dependency name="support" version="v4" />
    <dependency name="android-support-v4" revision="8" />-->
    

Finally:

最后:

  • Restart Eclipse
  • 重启Eclipse

If needed, copy android-support-v4.jar from <sdk>/extras/support/v4 to your libs.

如果需要,将android-support-v4.jar从 / extras / support / v4复制到您的libs。

#2


4  

@Šantić A. Miroslav - I'm not sure why, but deleting the SDK tools does not downgrade to the previous version. The folder <sdk>/tools just disappeared and a path not found error occurred.

@ŠantićA。Miroslav - 我不知道为什么,但删除SDK工具不会降级到以前的版本。文件夹 / tools刚刚消失,发现路径未找到错误。


I tried to download from http://dl-ssl.google.com/android/repository/tools_r22-windows.zip, unzip it and replace it with the <sdk>/tools folder to downgrade the SDK tools, and it worked for me.

我尝试从http://dl-ssl.google.com/android/repository/tools_r22-windows.zip下载,解压缩并将其替换为 / tools文件夹以降级SDK工具,它适用于我。

#3


1  

I have the same issue. It happen when I upgraded the Android SDK Tools to Rev. 22.2. Downgrading to a older version will get rid of the problem.

我有同样的问题。当我将Android SDK工具升级到Rev.22.2时,就会发生这种情况。降级到旧版本将解决问题。

#4


1  

I was facing same problem the last couple of hours, and I resolved it... I downloaded the SDK (for my Mac) from the link below.

我在最近几个小时遇到了同样的问题,我解决了......我从下面的链接下载了SDK(适用于我的Mac)。

[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 Windows] http://dl-ssl.google.com/android/repository/tools_r22-windows.zip

[适用于Windows] http://dl-ssl.google.com/android/repository/tools_r22-windows.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

I went to Android installed directory --> tool and replaced all the content with the downloaded files.

我去了Android安装目录 - >工具并用下载的文件替换了所有内容。

I restarted Eclipse, executed New Project, and it's working fine!

我重新启动了Eclipse,执行了New Project,它运行正常!

#5


0  

Please try my workaround:

请尝试我的解决方法:

  1. Create a new project using command line
    • Notes: DO NOT create it in Eclipse's workspace, create it elsewhere e.g. ~/tmp/
    • 注意:不要在Eclipse的工作区中创建它,在其他地方创建它,例如〜/ tmp目录/
    • e.g. android create project --target 1 --name MyAndroidApp --path ./MyAndroidAppProject --activity MyAndroidAppActivity --package com.example.myandroid
    • 例如android create project --target 1 --name MyAndroidApp --path ./MyAndroidAppProject --activity MyAndroidAppActivity --package com.example.myandroid
  2. 使用命令行创建一个新项目注意:不要在Eclipse的工作区中创建它,在其他地方创建它,例如〜/ tmp /例如android create project --target 1 --name MyAndroidApp --path ./MyAndroidAppProject --activity MyAndroidAppActivity --package com.example.myandroid
  3. Then in Eclipse, "Import" the project you've just created
  4. 然后在Eclipse中,“导入”您刚刚创建的项目

#6


0  

Working solution

I downloaded the adt-bundle-windows-x86_64-20130729 from http://burnbit.com/torrent/251451/adt_bundle_windows_x86_64_20130729_zip. After I updated, I also got the same error as you got. Without updating, I created the project, so now it's running. So do this step. This error is coming because of a version mismatch. So do this step.

我从http://burnbit.com/torrent/251451/adt_bundle_windows_x86_64_20130729_zip下载了adt-bundle-windows-x86_64-20130729。更新后,我也得到了同样的错误。没有更新,我创建了项目,所以现在它正在运行。这一步也是如此。由于版本不匹配,此错误即将发生。这一步也是如此。

Hopefully this will solve your problem.

希望这将解决您的问题。

#7


0  

There is a bug in the latest SDK version. Please downgrade to r_22. It works for me.

最新的SDK版本中存在错误。请降级到r_22。这个对我有用。

#8


0  

You need to update your ADT plugin for it.The latest version of an Android SDK tool is 22.2.1 and for that you need ADT bundle 22.2.1. Download link for it is http://www.softpedia.com/get/Programming/Components-Libraries/Android-Development-Tools.shtml

你需要为它更新你的ADT插件。最新版本的Android SDK工具是22.2.1,为此你需要ADT包22.2.1。下载链接为http://www.softpedia.com/get/Programming/Components-Libraries/Android-Development-Tools.shtml

#1


48  

Update 2: Now (2013-09-19T17:00:00Z) there's an ADT 22.2.1 and Tools 22.2.1 updates available that fix this issue:

更新2:现在(2013-09-19T17:00:00Z)有一个ADT 22.2.1和工具22.2.1更新可用于修复此问题:

  • Use Eclipse > Help > Check for Updates to get ADT 22.2.1
  • 使用Eclipse>帮助>检查更新以获取ADT 22.2.1
  • Use SDK Manager to get Tools 22.2.1
  • 使用SDK Manager获取工具22.2.1

You need both parts to fix the issue. The ADT bundle and the installer package on http://developer.android.com/sdk/index.html have been updated too.

您需要这两个部分来解决问题。 http://developer.android.com/sdk/index.html上的ADT软件包和安装程序包也已更新。

(From here)

(从这里)


Update: The bug report now has a response with fixed template files attached and the following comments:

更新:错误报告现在有一个附加固定模板文件的响应和以下注释:

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.

这个是我的坏。我正在改变模板使用的依赖系统,并将一个瞬态状态纳入到这个工具构建中。模板已在AOSP主分支中结算。

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.

我附上了当前活动模板的快照。用这个zip的内容替换你的sdk / tools / templates / activities文件夹可以解决这个问题。

I apologize for the inconvenience.

我带来的不便表示歉意。

My older workaround below.

我的旧解决方法如下。


Workaround to the bug:

解决bug的方法:

For Blank Activity:

空白活动:

  1. Edit <sdk>/tools/templates/activities/BlankActivity/template.xml

    编辑 /tools/templates/activities/BlankActivity/template.xml

  2. Comment out the dependency:

    注释掉依赖:

    <!--<dependency name="appcompat" version="v7" />-->
    

For Master/Detail Flow:

对于主/细节流程:

  1. Edit <sdk>/tools/templates/activities/MasterDetailFlow/template.xml

    编辑 /tools/templates/activities/MasterDetailFlow/template.xml

  2. Comment out the dependencies:

    注释掉依赖项:

    <!--<dependency name="support" version="v4" />
    <dependency name="android-support-v4" revision="8" />-->
    

Finally:

最后:

  • Restart Eclipse
  • 重启Eclipse

If needed, copy android-support-v4.jar from <sdk>/extras/support/v4 to your libs.

如果需要,将android-support-v4.jar从 / extras / support / v4复制到您的libs。

#2


4  

@Šantić A. Miroslav - I'm not sure why, but deleting the SDK tools does not downgrade to the previous version. The folder <sdk>/tools just disappeared and a path not found error occurred.

@ŠantićA。Miroslav - 我不知道为什么,但删除SDK工具不会降级到以前的版本。文件夹 / tools刚刚消失,发现路径未找到错误。


I tried to download from http://dl-ssl.google.com/android/repository/tools_r22-windows.zip, unzip it and replace it with the <sdk>/tools folder to downgrade the SDK tools, and it worked for me.

我尝试从http://dl-ssl.google.com/android/repository/tools_r22-windows.zip下载,解压缩并将其替换为 / tools文件夹以降级SDK工具,它适用于我。

#3


1  

I have the same issue. It happen when I upgraded the Android SDK Tools to Rev. 22.2. Downgrading to a older version will get rid of the problem.

我有同样的问题。当我将Android SDK工具升级到Rev.22.2时,就会发生这种情况。降级到旧版本将解决问题。

#4


1  

I was facing same problem the last couple of hours, and I resolved it... I downloaded the SDK (for my Mac) from the link below.

我在最近几个小时遇到了同样的问题,我解决了......我从下面的链接下载了SDK(适用于我的Mac)。

[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 Windows] http://dl-ssl.google.com/android/repository/tools_r22-windows.zip

[适用于Windows] http://dl-ssl.google.com/android/repository/tools_r22-windows.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

I went to Android installed directory --> tool and replaced all the content with the downloaded files.

我去了Android安装目录 - >工具并用下载的文件替换了所有内容。

I restarted Eclipse, executed New Project, and it's working fine!

我重新启动了Eclipse,执行了New Project,它运行正常!

#5


0  

Please try my workaround:

请尝试我的解决方法:

  1. Create a new project using command line
    • Notes: DO NOT create it in Eclipse's workspace, create it elsewhere e.g. ~/tmp/
    • 注意:不要在Eclipse的工作区中创建它,在其他地方创建它,例如〜/ tmp目录/
    • e.g. android create project --target 1 --name MyAndroidApp --path ./MyAndroidAppProject --activity MyAndroidAppActivity --package com.example.myandroid
    • 例如android create project --target 1 --name MyAndroidApp --path ./MyAndroidAppProject --activity MyAndroidAppActivity --package com.example.myandroid
  2. 使用命令行创建一个新项目注意:不要在Eclipse的工作区中创建它,在其他地方创建它,例如〜/ tmp /例如android create project --target 1 --name MyAndroidApp --path ./MyAndroidAppProject --activity MyAndroidAppActivity --package com.example.myandroid
  3. Then in Eclipse, "Import" the project you've just created
  4. 然后在Eclipse中,“导入”您刚刚创建的项目

#6


0  

Working solution

I downloaded the adt-bundle-windows-x86_64-20130729 from http://burnbit.com/torrent/251451/adt_bundle_windows_x86_64_20130729_zip. After I updated, I also got the same error as you got. Without updating, I created the project, so now it's running. So do this step. This error is coming because of a version mismatch. So do this step.

我从http://burnbit.com/torrent/251451/adt_bundle_windows_x86_64_20130729_zip下载了adt-bundle-windows-x86_64-20130729。更新后,我也得到了同样的错误。没有更新,我创建了项目,所以现在它正在运行。这一步也是如此。由于版本不匹配,此错误即将发生。这一步也是如此。

Hopefully this will solve your problem.

希望这将解决您的问题。

#7


0  

There is a bug in the latest SDK version. Please downgrade to r_22. It works for me.

最新的SDK版本中存在错误。请降级到r_22。这个对我有用。

#8


0  

You need to update your ADT plugin for it.The latest version of an Android SDK tool is 22.2.1 and for that you need ADT bundle 22.2.1. Download link for it is http://www.softpedia.com/get/Programming/Components-Libraries/Android-Development-Tools.shtml

你需要为它更新你的ADT插件。最新版本的Android SDK工具是22.2.1,为此你需要ADT包22.2.1。下载链接为http://www.softpedia.com/get/Programming/Components-Libraries/Android-Development-Tools.shtml