ADT将不允许创建Android Activity [英] ADT will not allow creation of Android Activity
问题描述
我从 http://developer.android.com/sdk/index.html 安装了ADT捆绑包昨天,我正在遵循一个基本的Hello World教程。我创建了一个名为 MainActivity
的空白活动的新的Android应用程序项目。生成的项目有一个空的 src
文件夹和空的 res \layout
文件夹。 gen
文件夹中有一个 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 Tools v 22.6
- Android SDK平台工具v 19.0.1
- Android SDK Build-tools v 19
- SDK Platform v 3
- ARM EABI v7a系统映像v 2
- Android支持库v 19.0.1
- Google USB驱动程序v 9
- Android SDK Tools v 22.6
- Android SDK Platform-tools v 19.0.1
- Android SDK Build-tools v 19
- SDK Platform v 3
- ARM EABI v7a System Image v 2
- Android Support Library v 19.0.1
- Google USB Driver v 9
我还尝试通过右键单击 src
文件夹并转到Android Activity手动创建活动,但是当我点击完成创建向导,没有任何反应。有没有人有什么线索呢?我想念一个安装的关键组件吗?
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 Tools版本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.
这篇关于ADT将不允许创建Android Activity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!