eclipse 在eclipse中安装Android SDK和ADT

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/43329440/
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 23:24:44  来源:igfitidea点击:

Installing Android SDK and ADT in eclipse

androideclipsesdkadt

提问by user1741642

I am trying to start Android Development and trying to do so using the ADT plugin in my Eclipse Mars(Windows 10)

我正在尝试开始 Android 开发,并尝试在我的 Eclipse Mars(Windows 10)中使用 ADT 插件

I have installed the ADT plugin in my eclipse version 23.0.7.2120684.

我已经在我的 Eclipse 版本 23.0.7.2120684 中安装了 ADT 插件。

Also I have downloaded the SDK tools(tools_r25.2.3-windows) and extracted it to D:/eclipse\SDK.

我还下载了 SDK 工具(tools_r25.2.3-windows)并将其解压缩到 D:/eclipse\SDK。

But everytime I open Eclipse and click on Windows->Preferences ->and enter the SDK Location as D:/eclipse\SDK which is the SDK folder I am getting the below error:

但是每次我打开 Eclipse 并单击 Windows-> Preferences -> 并将 SDK 位置输入为 D:/eclipse\SDK 这是 SDK 文件夹时,我收到以下错误:

The Android SDK requires the new Build Tools component to be installed.

Android SDK 需要安装新的构建工具组件。

Please open the SDK Manager and install "Android SDK Build-tools"

请打开 SDK Manager 并安装“Android SDK Build-tools”

I click on Open SDK Manager and nothing happens, but I get an error message in the console:

我单击 Open SDK Manager 并没有任何反应,但我在控制台中收到一条错误消息:

[2017-04-10 22:56:35 - SDK Manager] [SDK Manager] Error: Expected verb after global parameters but found 'sdk' instead.

[2017-04-10 22:56:35 - SDK Manager] [SDK Manager] 错误:全局参数后的预期动词,但找到了“sdk”。

Can you please tell me what I am doing wrong here. Most of the installation guides/steps found on the net are a bit redundant since they are quite old.

你能告诉我我在这里做错了什么吗?在网上找到的大多数安装指南/步骤都有些多余,因为它们已经很旧了。

回答by John

As of Android SDK Tools Revision 25.3.0 removes obsolete/deprecated tools, see Release Notes, and as ADT plugin is no longer supported it cannot work with it.

从 Android SDK 工具修订版 25.3.0 开始,删除过时/弃用的工具,请参阅发行说明,并且由于不再支持 ADT 插件,因此无法使用它。

However revision 25.2.3 should be working. If you still want to use Eclipse try to look at Eclipse Neon for Android Developers.

然而,修订版 25.2.3 应该有效。如果您仍想使用 Eclipse,请尝试查看Eclipse Neon for Android Developers

回答by Dejvid

Eclipse no longer supports Android Application Development. Announcement here.

Eclipse 不再支持 Android 应用程序开发。公告在这里。

You might install Android Studio or Intellij Idea to create android apps using java.

您可以安装 Android Studio 或 Intellij Idea 来使用 java 创建 android 应用程序。