ADT将不允许创建的Andr​​oid活动的将不、ADT、oid、Andr

2023-09-11 11:24:27 作者:超越自我

我安装了 http://developer.android.com/sdk/index.html 的ADT包昨天,我在下面的一个基本的Hello World教程。我创建了一个新的Andr​​oid应用程序项目用 MainActivity 的空白活动。所得到的项目有一个空的的src 文件夹和空水库\布局文件夹。有一个在文件夹 R.java 文件,但它没有提及 MainActivity 。这是SDK的经理说:我已经安装了

I installed the ADT bundle from http://developer.android.com/sdk/index.html yesterday, and I was following a basic Hello World tutorial. I created a new Android Application Project with a Blank Activity named MainActivity. The resulting project has an empty src folder and empty res\layout folder. There is a R.java file in the gen folder but it has no reference to MainActivity. This is what the SDK manager says I have installed

在Android的SDK工具V 22.6 的Andr​​oid SDK平台工具V 19.0.1 在Android SDK中内建工具19节 在SDK平台V 3 在ARM EABI V7A系统映像V 2 在Android的支持库v 19.0.1 在谷歌的USB驱动器V 9

我也试过手动右键创建活动点击的src 文件夹,然后将Android的活动,但是当我打完成的创建向导,没有任何反应。没有人有任何线索,这是怎么回事?我错过安装的重要组成部分还是什么?

I also tried manually creating an activity by right clicking the src folder and going to Android Activity, but when I hit Finish on the creation wizard, nothing happens. Does anyone have any clues as to what's going on? Did I miss a key component to install or something?

推荐答案

如果您更新到Android SDK工具版本22.6,您需要更新DDMS工具和插件。

If you updated to Android SDK Tools version 22.6, you are required to Update DDMS Tools and Plugins.

进入帮助菜单栏 - >安装新软件,并安装(这将更新)  网址: https://dl-ssl.google.com/android/eclipse/

Go to "Help Menu Bar" -> "Install New software" and install (this will update it) url: https://dl-ssl.google.com/android/eclipse/

另外需要更新的开发者工具和NDK插件以最新的版本。 此步骤是对我有用的,并且工作。

Also update "Developer Tools" and "NDK Plugins" to latest Version. This steps is useful for me and worked also.