Eclipse不创建主要活动和布局 [英] Eclipse doesn't create Main Activity and layout
问题描述
我无法启动新的项目了。这是我做的......
I can't start new projects anymore. This is what I do...
- 启动Eclipse。
- 新的Android应用
- 分 API 8
- 目标 API 18
- 编译 API 19
- 创建活动:检查
- 活动名称:
MainActivity
- 布局名称:
activity_main
- 完成
- Start Eclipse.
- New Android Application
- min API 8
- target API 18
- compile API 19
- create activity : checked
- activity name :
MainActivity
- layout name :
activity_main
- finish
当我打开项目(它甚至无法打开
MainActivity.java
理所应当的): - 的src 的文件夹为空 - RES /布局的文件夹为空When I open the project (it doesn't even open
MainActivity.java
as it should be) : - src folder is empty - res/layout folder is empty不过的的AndroidManifest.xml 的存在。这是工作完美之前,我能够再创建项目,它只是突然爆发。
But AndroidManifest.xml exists. It was working perfectly before and I was able to create projects then it just suddenly broke.
我使用的API 18和19都安装并及时更新。
I'm using APIs 18 and 19 all installed and up to date.
推荐答案
昨天我有同样的问题在Android SDK管理器更新最新的软件包之后。
I had the same problem yesterday after updating the latest packages on the Android SDK Manager.
通过更新Eclipse插件固定它:
运行Eclipse
>帮助
>安装新软件
>粘贴网址
的 https://dl-ssl.google.com/android/eclipse/ ,然后preSS输入
。更新插件后,我创建了一个测试项目,主要活动和菜单被默认为正常创建。Fixed it by updating the Eclipse plugin:
Run Eclipse
>Help
>Install new software
>Paste the URL
https://dl-ssl.google.com/android/eclipse/ then pressEnter
. After updating the plugin, I created a test project with the main activity and menu was created by default as normal.这篇关于Eclipse不创建主要活动和布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!