【问题标题】:Eclipse with Android SDK failure to run blank project带有 Android SDK 的 Eclipse 无法运行空白项目
【发布时间】:2014-02-26 20:35:46
【问题描述】:

我已经下载了包含http://developer.android.com/sdk/index.html 的所有内容的 ADT Bundle。当我创建 Android Applicatio 并且我想运行时,我得到了这样的结果。如何让它运行。

[2012-11-21 10:18:00 - Test2] ------------------------------
[2012-11-21 10:18:00 - Test2] Android Launch!
[2012-11-21 10:18:00 - Test2] adb is running normally.
[2012-11-21 10:18:01 - Test2] Performing com.example.test2.MainActivity activity launch
[2012-11-21 10:18:01 - Test2] Automatic Target Mode: launching new emulator with compatible AVD 'Test'
[2012-11-21 10:18:01 - Test2] Launching a new emulator with Virtual Device 'Test'
[2012-11-21 10:18:01 - Emulator] WARNING: Data partition already in use. Changes will not persist!
[2012-11-21 10:18:01 - Emulator] WARNING: Cache partition already in use. Changes will not persist!
[2012-11-21 10:18:01 - Emulator] Failed to allocate memory: 8
[2012-11-21 10:18:01 - Emulator] 
[2012-11-21 10:18:01 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
[2012-11-21 10:18:01 - Emulator] Please contact the application's support team for more information.

【问题讨论】:

  • 您必须重新启动 PC 并重试。实际上其中一个模拟器实例正在运行,并且不允许其他运行。
  • 照@spanjeta 说的做也删除并创建一个新的avd

标签: android eclipse sdk adt


【解决方案1】:

在运行您的 android 应用时,它将加载到新的模拟器中。我们不能用单个实例运行多个模拟器。 Goto->Task Manager->adb(in running processes)->give end task->重启你的eclipse并运行你的模拟器。

数据分区已在使用中:这个问题取决于您的系统 RAM 大小和模拟器内存​​大小(在创建 AVD 时分配内存大小)。如果两个模拟器在相同的实例中运行, 会发生内存错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-09
    • 1970-01-01
    • 1970-01-01
    • 2011-06-06
    • 2012-01-18
    • 2011-07-30
    相关资源
    最近更新 更多