如何在Eclipse中更新ADT ?

时间:2021-11-01 20:14:24

I have tried to update my Eclipse. Currently I have till 2.2 Android SDK in my Eclipse. Yesterday I have updated my Eclipse like this:

我试着更新我的Eclipse。目前我已经在Eclipse中使用了2.2 Android SDK。昨天我更新了我的日食:

Eclipse -> window -> Android SDK Manager -> I have checked two check-boxes from list. Tools -> Android SDK Tools and Android SDK Platform Tools.

Eclipse ->窗口-> Android SDK Manager ->我已经从列表中检查了两个复选框。工具-> Android SDK工具和Android SDK平台工具。

I have posted here some last lines of the message which I get from downloading and installing:

我在这里张贴了一些我从下载和安装中得到的信息的最后几行:

Preparing to install archives
Downloading Android SDK Platform-tools, revision 12
Installing Android SDK Platform-tools, revision 12
Stopping ADB server succeeded.
Installed Android SDK Platform-tools, revision 12
Downloading Android SDK Tools, revision 20
Installing Android SDK Tools, revision 20
[post_tools_install.bat] Updating SDK Manager.exe
[post_tools_install.bat] 1 file(s) copied.
[post_tools_install.bat] Updating AVD Manager.exe
[post_tools_install.bat] 1 file(s) copied.
Installed Android SDK Tools, revision 20
Stopping ADB server succeeded.
Starting ADB server succeeded.
Done. 2 packages installed.
Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/addon.xml, reason: dl-ssl.google.com
Fetching URL: http://software.intel.com/sites/landingpage/android/addon.xml
Failed to fetch URL http://software.intel.com/sites/landingpage/android/addon.xml, reason: software.intel.com
Done loading packages.

准备安装档案下载Android SDK平台工具,修订12安装Android SDK平台工具,修订12停止ADB服务器成功。安装Android SDK平台工具,修订12下载Android SDK工具,修订20安装Android SDK工具,修订20 [post_tools_install。蝙蝠)更新SDK经理。exe[post_tools_install。蝙蝠]1文件复制。[post_tools_install。蝙蝠)更新AVD管理器。exe[post_tools_install。蝙蝠]1文件复制。安装了Android SDK工具,修改了20个停止ADB服务器成功。亚行服务器开始成功了。完成。2包安装。获取URL: https://dl-ssl.google.com/android/repository/addon.xml无法获取URL https://dl-ssl.google.com/android/repository/addon.xml,原因是:http://software.intel.com/sites/landingpage/android/addon.xml无法获取URL http://software.intel.com/sites/landingpage/android/addon.xml,原因是:software.intel.com完成了装载包。

But after all this after I have closed Eclipse and again wanted to start, it throw the error:

但在这之后,我关闭了Eclipse并再次想要启动,它抛出了错误:

This Android SDK requires Android Developer Toolkit version 20.0.0 or above. Current version is 16.0.0.v201203301601-306762. Please update ADT to the latest version.

这个Android SDK要求Android开发者工具包版本20.0.0或以上。当前版本是16.0.0.v201203301601-306762。请将ADT更新到最新版本。

In preferences I received this error:

在首选项中,我收到了这个错误:

This Android SDK requires Android Develop... Please update ADT to the latest version.

这个Android SDK需要Android开发…请将ADT更新到最新版本。

8 个解决方案

#1


329  

You have updated the android sdk but not updated the adt to match with it.

您已经更新了android sdk,但是没有更新adt来匹配它。

You can update the adt from here

你可以从这里更新adt。

You might need to update the software source for your adt update

您可能需要更新adt更新的软件源代码。

Go to eclipse > help > Check for updates.

到eclipse >帮助>检查更新。

It should list the latest update of adt. If it is not working try this

它应该列出adt的最新更新。如果它不工作,试试这个。

go to eclipse > help > Install new software

到eclipse >帮助>安装新软件。

Click on add

点击添加

add this url : https://dl-ssl.google.com/android/eclipse/

添加这个url: https://dl-ssl.google.com/android/eclipse/。

give it any name.

给它任何名称。

It will list the updates available- which should ideally be adt 20.xx

它将列出可用的更新,最好是adt 20.xx。

Eclipse will restart and hopefully everything should work fine for you.

Eclipse将重新启动,希望一切都适合您。

#2


7  

I had this problem. Since I already had the ADT address I could not follow the suggested fix. The reason why the update was not working in my case is that the ADT address was not checked in the list of "Available updates".

我有这个问题。因为我已经有了ADT地址,所以我不能按照建议的方法去做。在我的例子中,更新没有工作的原因是ADT地址在“可用更新”列表中没有被选中。

1) Go to eclipse > help > Install new software

1)到eclipse >帮助>安装新软件。

2) Click on "Available Software site"

2)点击“可用软件站点”

3) Check that you have the ADT address

3)检查你是否有ADT地址。

4) If not add it following the Murtuza Kabul's steps

4)如果不按照穆图扎·卡布尔的步骤添加。

5) if yes check that the address is checked (checkbox on the left of the address)

如果是,请检查地址是否被选中(地址左边的复选框)

I run the update after having launched Eclipse as administrator to be sure that it was not going to have problems accessing the system folders

在启动Eclipse作为管理员之后,我运行这个更新,以确保它不会出现访问系统文件夹的问题。

#3


5  

If https://dl-ssl.google.com/android/eclipse/ does not work for you, try using the http://dl-ssl.google.com/android/eclipse/.

如果https://dl-ssl.google.com/android/eclipse/不适合您,请尝试使用http://dl-ssl.google.com/android/eclipse/。

The link without https worked for me.

没有https的链接为我工作。

Make sure you launched eclipse as administrator

确保您作为管理员启动了eclipse。

#4


4  

I viewed the Eclipse ADT documentation and found out the way to get around this issue. I was able to Update My SDK Tool to 22.0.4 (Latest Version).

我查看了Eclipse ADT文档,并找到了解决这个问题的方法。我可以更新我的SDK工具到22.0.4(最新版本)。

Solution is: First Update ADT to 22.0.4 and then Update SDK Tool to 22.0.4

解决方案是:首先更新ADT到22.0.4,然后更新SDK工具到22.0.4。

The above link says,

上面的链接说,

ADT 22.0.4 is designed for use with SDK Tools r22.0.4. If you haven't already installed SDK Tools r22.0.4 into your SDK, use the Android SDK Manager to do so

ADT 22.0.4设计用于SDK工具r22.0.4。如果您还没有在SDK中安装SDK工具,请使用Android SDK管理器。

What I had to do was update my ADT to 22.0.4 (Latest Version) and then I was able to update SDK tool to 22.0.4. I thought only SDK Tool has been updated not ADT, so I was updating the SDK Tool with Older ADT Version (22.0.1).

我需要做的是更新ADT到22.0.4(最新版本),然后我可以更新SDK工具到22.0.4。我以为只有SDK工具被更新了,所以我用更老的ADT版本更新了SDK工具(22.0.1)。

How to Update your ADT to Latest Version

如何更新你的ADT到最新版本?

  1. In Eclipse go to Help

    在Eclipse中提供帮助。

  2. Install New Software ---> Add

    安装新软件--->添加。

  3. inside Add Repository write the Name: ADT (or whatever you want)

    内部添加存储库写入名称:ADT(或任何您想要的)

  4. Location: https://dl-ssl.google.com/android/eclipse/

    地点:https://dl-ssl.google.com/android/eclipse/

  5. after loading you should get Developer Tools and NDK Plugins

    加载之后,应该得到开发工具和NDK插件。

  6. check both if you want to use the Native Developer Kit (NDK) in the future or check

    如果您想在将来使用本地开发人员工具包(NDK),请检查这两者。

  7. Developer Tool only

    开发工具只

  8. click Next

    单击Next

  9. Finish

    完成

#5


1  

In my case opening 'Help' >> "Install New Software" had no entries for any URLs (previous url's were not there) - so I Manually added 'em. And updated ... and Voilaaaa !! Above posts have been very helpful in resolving this issue for me.

在我的案例中,打开“帮助”>>“安装新软件”没有任何url的条目(以前的url不在那里)——所以我手动添加了它们。和Voilaaaa ! !以上文章对我解决这个问题非常有帮助。

#6


1  

Running as administrator then following other comments fixed the problem for me :)

以管理员的身份运行,然后是其他的评论解决了我的问题:)

#7


1  

Reason to that is with the new update, they changed the URL for the Android Developer Tools update site to require HTTPS. If you are updating ADT, make sure you use HTTPS in the URL for the Android Developer Tools update site.

原因是新的更新,他们改变了Android开发者工具更新站点的URL要求HTTPS。如果您正在更新ADT,请确保在Android Developer Tools更新站点的URL中使用HTTPS。

#8


0  

I had the same problem where there's no files under Generated Java files, BuildConfig and R.java were missing. The automatic build option is not generating.
In Eclipse under Project, uncheck Build Automatically. Then under Project select Build Project. You may need to fix the projec

我遇到了同样的问题,在生成的Java文件、BuildConfig和R中没有文件。java失踪。自动生成选项没有生成。在Eclipse下的项目中,取消自动构建。然后根据项目选择构建项目。您可能需要修复projec。

#1


329  

You have updated the android sdk but not updated the adt to match with it.

您已经更新了android sdk,但是没有更新adt来匹配它。

You can update the adt from here

你可以从这里更新adt。

You might need to update the software source for your adt update

您可能需要更新adt更新的软件源代码。

Go to eclipse > help > Check for updates.

到eclipse >帮助>检查更新。

It should list the latest update of adt. If it is not working try this

它应该列出adt的最新更新。如果它不工作,试试这个。

go to eclipse > help > Install new software

到eclipse >帮助>安装新软件。

Click on add

点击添加

add this url : https://dl-ssl.google.com/android/eclipse/

添加这个url: https://dl-ssl.google.com/android/eclipse/。

give it any name.

给它任何名称。

It will list the updates available- which should ideally be adt 20.xx

它将列出可用的更新,最好是adt 20.xx。

Eclipse will restart and hopefully everything should work fine for you.

Eclipse将重新启动,希望一切都适合您。

#2


7  

I had this problem. Since I already had the ADT address I could not follow the suggested fix. The reason why the update was not working in my case is that the ADT address was not checked in the list of "Available updates".

我有这个问题。因为我已经有了ADT地址,所以我不能按照建议的方法去做。在我的例子中,更新没有工作的原因是ADT地址在“可用更新”列表中没有被选中。

1) Go to eclipse > help > Install new software

1)到eclipse >帮助>安装新软件。

2) Click on "Available Software site"

2)点击“可用软件站点”

3) Check that you have the ADT address

3)检查你是否有ADT地址。

4) If not add it following the Murtuza Kabul's steps

4)如果不按照穆图扎·卡布尔的步骤添加。

5) if yes check that the address is checked (checkbox on the left of the address)

如果是,请检查地址是否被选中(地址左边的复选框)

I run the update after having launched Eclipse as administrator to be sure that it was not going to have problems accessing the system folders

在启动Eclipse作为管理员之后,我运行这个更新,以确保它不会出现访问系统文件夹的问题。

#3


5  

If https://dl-ssl.google.com/android/eclipse/ does not work for you, try using the http://dl-ssl.google.com/android/eclipse/.

如果https://dl-ssl.google.com/android/eclipse/不适合您,请尝试使用http://dl-ssl.google.com/android/eclipse/。

The link without https worked for me.

没有https的链接为我工作。

Make sure you launched eclipse as administrator

确保您作为管理员启动了eclipse。

#4


4  

I viewed the Eclipse ADT documentation and found out the way to get around this issue. I was able to Update My SDK Tool to 22.0.4 (Latest Version).

我查看了Eclipse ADT文档,并找到了解决这个问题的方法。我可以更新我的SDK工具到22.0.4(最新版本)。

Solution is: First Update ADT to 22.0.4 and then Update SDK Tool to 22.0.4

解决方案是:首先更新ADT到22.0.4,然后更新SDK工具到22.0.4。

The above link says,

上面的链接说,

ADT 22.0.4 is designed for use with SDK Tools r22.0.4. If you haven't already installed SDK Tools r22.0.4 into your SDK, use the Android SDK Manager to do so

ADT 22.0.4设计用于SDK工具r22.0.4。如果您还没有在SDK中安装SDK工具,请使用Android SDK管理器。

What I had to do was update my ADT to 22.0.4 (Latest Version) and then I was able to update SDK tool to 22.0.4. I thought only SDK Tool has been updated not ADT, so I was updating the SDK Tool with Older ADT Version (22.0.1).

我需要做的是更新ADT到22.0.4(最新版本),然后我可以更新SDK工具到22.0.4。我以为只有SDK工具被更新了,所以我用更老的ADT版本更新了SDK工具(22.0.1)。

How to Update your ADT to Latest Version

如何更新你的ADT到最新版本?

  1. In Eclipse go to Help

    在Eclipse中提供帮助。

  2. Install New Software ---> Add

    安装新软件--->添加。

  3. inside Add Repository write the Name: ADT (or whatever you want)

    内部添加存储库写入名称:ADT(或任何您想要的)

  4. Location: https://dl-ssl.google.com/android/eclipse/

    地点:https://dl-ssl.google.com/android/eclipse/

  5. after loading you should get Developer Tools and NDK Plugins

    加载之后,应该得到开发工具和NDK插件。

  6. check both if you want to use the Native Developer Kit (NDK) in the future or check

    如果您想在将来使用本地开发人员工具包(NDK),请检查这两者。

  7. Developer Tool only

    开发工具只

  8. click Next

    单击Next

  9. Finish

    完成

#5


1  

In my case opening 'Help' >> "Install New Software" had no entries for any URLs (previous url's were not there) - so I Manually added 'em. And updated ... and Voilaaaa !! Above posts have been very helpful in resolving this issue for me.

在我的案例中,打开“帮助”>>“安装新软件”没有任何url的条目(以前的url不在那里)——所以我手动添加了它们。和Voilaaaa ! !以上文章对我解决这个问题非常有帮助。

#6


1  

Running as administrator then following other comments fixed the problem for me :)

以管理员的身份运行,然后是其他的评论解决了我的问题:)

#7


1  

Reason to that is with the new update, they changed the URL for the Android Developer Tools update site to require HTTPS. If you are updating ADT, make sure you use HTTPS in the URL for the Android Developer Tools update site.

原因是新的更新,他们改变了Android开发者工具更新站点的URL要求HTTPS。如果您正在更新ADT,请确保在Android Developer Tools更新站点的URL中使用HTTPS。

#8


0  

I had the same problem where there's no files under Generated Java files, BuildConfig and R.java were missing. The automatic build option is not generating.
In Eclipse under Project, uncheck Build Automatically. Then under Project select Build Project. You may need to fix the projec

我遇到了同样的问题,在生成的Java文件、BuildConfig和R中没有文件。java失踪。自动生成选项没有生成。在Eclipse下的项目中,取消自动构建。然后根据项目选择构建项目。您可能需要修复projec。