2012-08-08 144 views
1

我的问题是,我永远无法在模拟器或真实设备中运行我的android应用程序。Android应用程序运行失败

我已经日食太阳神作为

Eclipse IDE for Java Developers 

Version: Helios Service Release 2 
Build id: 20110301-1815 
(c) Copyright Eclipse contributors and others 2000, 2011. All rights reserved. 
Visit http://eclipse.org/ 

This product includes software developed by the 
Apache Software Foundation http://apache.org/ 

最新的SDK和AVD适当配置。但是,这个问题是在创建应用程序时。 我请按照下列步骤

1) File > New > Android Application Project 
Here a diaglog box appears where I put application name etc, The finish button is disabled in this step. 

2)On clicking next the "Configure Launcher Icon" dialog appears, here too the finish button is disabled 

3) In the third step "Create activity" dialog appears, here also the "Finish" button is disabled. 
I select "blank activity" from the list box and click next 

4) On the fourth step "New blank Activity" dialog box appears as shown in the figure. 

What to put in the mentioned box

在分层父字段中输入的东西后,完成按钮被激活。点击完成后,创建应用程序框架。

现在,当我运行应用程序,我面向两个问题 1)有时说有在项目中的错误,并要求修复 2)如果它运行时,会出现仿真器和避谈应用正在运行。

我下载了apk文件并安装在我的Samsung Galaxy S2中,但打开/运行按钮在此处被禁用。

+0

您是否遵循了在android的hello world教程的所有步骤? http://developer.android.com/training/basics/firstapp/index.html – mrucci 2012-08-08 12:04:56

+0

@mrucci,是的,但没有关于我在图片中显示的最后一个对话框。 – 2012-08-08 12:12:38

+0

其他人也有同样的问题。看来你必须更新eclipse:http://stackoverflow.com/questions/11717294/hierarchical-parent-error-when-create-new-android-project – mrucci 2012-08-08 12:46:09

回答

0
  1. 要给你想在分层父费尔德名称
  2. 转至AndroidManifest.xml中需要一个“android.intent.action.MAIN”的开始。

添加

action android:name="android.intent.action.MAIN category android:name="android.intent.category.LAUNCHER

相关问题