简体   繁体   English

在Eclipse中设置Android开发工具

[英]Setting up Android Development Tools in Eclipse

If you download android SDK now, it comes with a custom eclipse with android fully installed on it, so way easier 如果您现在下载android SDK,它会附带一个自定义eclipse,其上安装了完整的android,因此更容易

Solved!, it was solved by downloading Eclipse Indigo, but as indicated online, they tell you to go to 'File>New>Other…>Android>Android Project' , but Android Project is not in the list? 解决了!,它是通过下载Eclipse Indigo解决的,但是如在线所示,它们会告诉你去'File>New>Other…>Android>Android Project' ,但Android项目不在列表中?

So, 所以,

I recently wanted to start making a Java android app, and by going to developer.android.com, they told me, install Android SDK tools, so i did that, then in eclipse, i have to got to help, ad new software, and use this : Enter Android Development Tools in the Name field, and https://dl-ssl.google.com/android/eclipse/ in the Location field. 我最近想开始制作一个Java android应用程序,然后去developer.android.com,他们告诉我,安装Android SDK工具,所以我这样做,然后在eclipse中,我必须得到帮助,广告新软件,并使用此功能: Enter Android Development Tools in the Name field, and https://dl-ssl.google.com/android/eclipse/ in the Location field. , so i did that, and it keeps giving me this error : ,所以我这样做了,它一直给我这个错误:

(com.android.ide.eclipse.adt.feature.group 20.0.2.v201207191942-407447)
  Missing requirement: Android Development Tools 20.0.2.v201207191942-407447 (com.android.ide.eclipse.adt.feature.group 20.0.2.v201207191942-407447) requires 'org.eclipse.core.runtime 3.6.0' but it could not be found

i looked it up on google, but couldnt find anything... Does anyone now how to fix this? 我在谷歌上查了一下,却找不到任何东西......现在有人怎么解决这个问题?

Greets 电贺

I am using Eclipse Helios. 我正在使用Eclipse Helios。 Download Eclipse IDE for Java Developers from here & update it latest packages by goto to menu Help -> Check for new updates . 这里下载适用于Java开发人员的Eclipse IDE,并通过goto将其最新软件包更新到菜单帮助 - >检查新的更新

Download & install Android SDK. 下载并安装Android SDK。

To install ADT Plugin: 要安装ADT插件:

  1. Start Eclipse, then select Help > Install New Software.... Click Add, in the top-right corner. 启动Eclipse,然后选择“帮助”>“安装新软件”....单击右上角的“添加”。
  2. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location: 在出现的“添加存储库”对话框中,为“名称”输入“ADT插件”,并为“位置”输入以下URL:

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

  3. Click OK Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons). 单击“确定”注意:如果您在获取插件时遇到问题,请尝试使用位置URL中的“http”,而不是“https”(出于安全原因,首选https)。

  4. In the Available Software dialog, select the checkbox next to Developer Tools and click Next. 在Available Software对话框中,选中Developer Tools旁边的复选框,然后单击Next。
  5. In the next window, you'll see a list of the tools to be downloaded. 在下一个窗口中,您将看到要下载的工具列表。 Click Next. 点击下一步。
  6. Read and accept the license agreements, then click Finish. 阅读并接受许可协议,然后单击“完成”。 Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK. 注意:如果您收到安全警告,指出无法建立软件的真实性或有效性,请单击“确定”。
  7. When the installation completes, restart Eclipse. 安装完成后,重新启动Eclipse。

Procedure to work with android in Eclipse juno is : 在Eclipse juno中使用android的过程是:

Step 1: Install jdk-7 version and then Install installer_r16-windows.exe Step 1:安装jdk-7版本,然后安装installer_r16-windows.exe

Step 2: now unzip the android-sdk and paste it into disk c android folder and replace all. Step 2:现在解压缩android-sdk并将其粘贴到磁盘c android文件夹中并替换所有。

Step 3: now unzip the eclipse-juno. Step 3:现在解压缩eclipse-juno。

Step 4: open eclipse ide and go to the help option and click on new software install option. Step 4:打开eclipse ide并转到帮助选项,然后单击新的软件安装选项。

Step 5: click on archive and give the path to ur ADT-20.0.3 or any version and choose restart eclipse option. Step 5:点击存档并给出你的ADT-20.0.3或任何版本的路径,然后选择restart eclipse选项。

Step 6: now two green button will be displayed on the left most upper side of eclipse. Step 6:现在两个绿色按钮将显示在日食的最左上方。

Step 7: first click on small arrow type button and see all the packages are installed if not choose install package. Step 7:首先单击小箭头类型按钮,如果没有选择安装包,则查看已安装的所有软件包。

Step 8: now click on second big green button named AVD ie android virtual device. Step 8:现在点击名为AVD的第二个大绿色按钮即android虚拟设备。

Step 9: click on new and configure ram and all u want in your AVD. Step 9:点击新建并配置ram以及您在AVD中想要的所有内容。

Step 10: your AVD is on screen now. Step 10:你的AVD现在在屏幕上。

(Using the comments to provide an answer) (使用评论提供答案)

Try using the latest version of Eclipse (Juno), or at least Eclipse Indigo. 尝试使用最新版本的Eclipse(Juno),或至少使用Eclipse Indigo。 The newer version of the Android Framework might have dependencies that the latest versions of Eclipse provide. 较新版本的Android Framework可能具有最新版本的Eclipse提供的依赖项。

If this is incorrect / doesn't work, let us know so we can update the solution. 如果这不正确/不起作用,请告诉我们,以便我们更新解决方案。

You didn't install ADT plugins yet or something goes wrong. 您尚未安装ADT插件或出现问题。

Download ADT-20 form HERE 这里下载ADT-20表格

In eclipse goto--> Help --> Install new Software --> Select ADT-20.zip 在eclipse转到 - >帮助 - >安装新软件 - >选择ADT-20.zip

For step-by-step instruction HOW TO INSTALL ANDROID see this 有关逐步说明如何安装ANDROID请参阅此内容

根据您给出的错误,它确定版本问题..您可能正在尝试添加其版本低于ADT-20的ADT,并且您的ecllips要求ADT-20 ..所以尝试提供包含ADT版本20的链接。仍存在问题请访问: http//developer.android.com/sdk/installing/installing-adt.html他们还为ADT-20.zip文件下载并下载并手动安装。

我遇到了同样的问题,我安装了Eclipse Indigo并且它工作得很完美...因为它的版本是3.7.2所以它应该可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM