【问题标题】:Android application failed to runAndroid 应用程序无法运行
【发布时间】:2012-08-08 11:49:28
【问题描述】:

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

我有日食 Helios

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.

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

现在,当我运行应用程序时,我面临两个问题 1)有时它说项目中有错误并要求修复 2) 如果它运行,模拟器会出现,并且没有关于正在运行的应用程序的任何信息。

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

【问题讨论】:

标签: android eclipse apk facebook-android-sdk


【解决方案1】:

是的,我遇到了同样的问题。我按照其他人所说的只是检查更新,但没有找到任何东西。然后我使用https://dl-ssl.google.com/android/eclipse/,and ADT 版本从 v20.0.0 更新到 v20.0.1 重新安装了 ADT 插件。所有问题解决了。​​

【讨论】:

    【解决方案2】:
    1. 在分层父字段中提供您想要的名称
    2. 转到 AndroidManifest.xml 需要一个“android.intent.action.MAIN”才能启动。

    添加

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-03-31
      • 2016-02-14
      • 2022-01-03
      • 2011-09-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多