ADT 不允许创建 Android Activity [英] ADT will not allow creation of Android Activity

查看:32
本文介绍了ADT 不允许创建 Android Activity的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从 http://developer.android.com/sdk/index.html 安装了 ADT 包昨天,我正在学习基本的 Hello World 教程.我创建了一个新的 Android 应用程序项目,其中包含一个名为 MainActivity 的空白活动.生成的项目有一个空的 src 文件夹和空的 reslayout 文件夹.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 reslayout 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
  • Android SDK 平台工具 v 19.0.1
  • Android SDK 构建工具 v 19
  • SDK 平台 v 3
  • ARM EABI v7a 系统映像 v 2
  • Android 支持库 v 19.0.1
  • Google USB 驱动程序 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 工具版本 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/

同时将开发者工具"NDK 插件" 更新到最新版本.这些步骤对我很有用,也很有效.

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

这篇关于ADT 不允许创建 Android Activity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆