Eclipse Juno 不会创建 Android Activity [英] Eclipse Juno won't create Android Activity

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

问题描述

我下载了 Eclipse Juno Java EE 版 并安装了 ADT 插件.我从 Eclipse 创建了一个新的 Android 应用程序 项目,并在向导中创建了一个名为 TaskariActivity 的活动.在我按下完成后,它创建了项目而不是活动,并且向导没有关闭.我按取消.src 文件夹中没有活动或任何内容.我通过右键单击 src,选择 new -> 创建了一个新活动.其他 ->安卓->活动.我选择了 BlankActivity(就像我之前创建项目时一样),在项目组合框中选择了较早创建的项目.我将 Activity 名称设置为 TaskariActivity,布局名称设置为 activity_main,标题设置为 TaskariActivity.接下来,我选择了导航类型,并将其设置为 Tabs + Swipe(我认为这将使我成为标签,而我所要做的一切只是插入元素和它们的操作).我按下了下一步,什么也没发生.完成也没有做任何事情.我按下了取消,但没有创建活动.

I downloaded Eclipse Juno Java EE edition and installed ADT plugin. I created a new Android Application Project from Eclipse and in the wizard I created an activity called TaskariActivity. After I pressed finish, it created the project but not the activity and the wizard didn't close. I pressed cancel. No activity or anything in the src folder. I created a new activity by right clicking on src, selecting new -> other -> Android -> activity. I selected BlankActivity (as earlier when I was creating the project), selected the earlier created project in the Project combo box. I set the Activity name as TaskariActivity, layout name as activity_main and title as TaskariActivity. Next I selected navigation type and I set it to Tabs + Swipe (I thought this would make me tabs and everything I had to do would be just inserting the elements and the actions for them). I pressed next, nothing happened. Finish didn't also do anything. I pressed cancel and an activity wasn't created.

那么,我怎样才能像早期版本的 Eclipse 一样创建一个 Android 应用程序?它会自动创建活动,并准备好开箱即用.现在它不会生成任何文件并且新的活动向导不起作用.有帮助吗?

So, how can I create an Android application like in the earlier version of Eclipse? It automatically created the activity and it was ready be run out of the box. Now it won't generate any files and the new activity wizard doesn't work. Help?

推荐答案

只需使用默认启动器图像(蓝色笑脸)而不是自定义它,它应该可以工作;)

Just go with default launcher image (blue smiley) instead of customizing it and it should work ;)

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

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