新的Andr​​oid应用程序项目 - 布局文件和活动课不是由ADT创建 [英] New Android Application Project - layout file and activity class are not created by ADT

查看:149
本文介绍了新的Andr​​oid应用程序项目 - 布局文件和活动课不是由ADT创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

环境:Eclipse的ADT生成:v22.3.0-887826时,Windows 8.1主机

Environment: Eclipse ADT Build: v22.3.0-887826, Windows 8.1 Host.

我提出以下步骤来创建新的Andr​​oid项目:

I make the following steps to create new Android project:

文件 - 新建的Andr​​oid应用程序项目。应用程序名称:样品,其他所有字段都默认:最低的SDK 8,目标18,编译19下一页

File - New Android Application Project. Application Name: Sample, all other fields default: Minimum SDK 8, Target 18, compile with 19. Next.

创建自定义启动 - 关闭,创建活动 - 上。下一步。

Create custom launcher - off, Create activity - on. Next.

空白的活动,下一步。

SampleActivity,布局名称activity_sample。完成。

SampleActivity, Layout name activity_sample. Finish.

最后,我打开包浏览器,样品 - 水库。布局目录是空的。 src目录也是空的,主要活动类不创建。

Finally, I open package explorer, Sample - res. Layout directory is empty. src directory is also empty, main activity class is not created.

推荐答案

我在Mac OSX 10.9.2类似的问题和更新,以

I had a similar problem on Mac OsX 10.9.2 and updated to

Android开发工具22.3.0.v201310242005-887826

Android Developer Tools 22.3.0.v201310242005-887826

这是亚历克斯有原始的问题上同一个版本。对我来说,更新解决了这一问题,所以我不认为这是ADT的,是造成该问题的版本。别的东西在更新过程中清除了问题的原因。现在,当我创建一个新的Andr​​oid项目,布局文件和活动类创建,符合市场预期。

which is the same version that Alex had the original problem on. For me, the updating fixed the problem, so I don't think it was the version of ADT that was causing the problem. Something else in the update process cleared the cause of the problem. Now, when I create a new Android project, the layout files and activity class is created, as expected.

这篇关于新的Andr​​oid应用程序项目 - 布局文件和活动课不是由ADT创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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