单击在eclipse中运行,没有任何反应

时间:2015-10-15 08:03:59

标签: java android eclipse

我有eclipse的情况,在我在eclipse应用程序运行之前运行良好,但今天,没有工作。我点击progect->运行as-> android应用程序。没有任何反应,没有错误,没有弹出窗口,控制台也没有任何内容:

2015-10-15 11:01:03 - test] Android Launch!
[2015-10-15 11:01:03 - test] adb is running normally.
[2015-10-15 11:01:03 - test] Performing com.example.test.MainActivity activity launch
[2015-10-15 11:01:03 - test] Automatic Target Mode: launching new emulator with compatible AVD 'Nexus_5_API_22_x86'
[2015-10-15 11:01:03 - test] Launching a new emulator with Virtual Device 'Nexus_5_API_22_x86'
[2015-10-15 11:01:04 - Emulator] emulator: ERROR: x86 emulation currently requires hardware acceleration!
[2015-10-15 11:01:04 - Emulator] Please ensure Intel HAXM is properly installed and usable.
[2015-10-15 11:01:04 - Emulator] CPU acceleration status: HAX kernel module is not installed!

请告诉我,如何在eclipse中运行我的应用程序到Android手机?

1 个答案:

答案 0 :(得分:1)

如果您为AVD将GPU模拟设置为“是”,则运行时会自动启用图形加速。如果在创建AVD时未启用GPU仿真,则仍可以在运行时启用它。

在运行时为AVD启用图形加速:

如果从命令行运行模拟器,只需在选项中包含-gpu:

emulator -avd -gpu on

注意:您必须指定使用Android 4.0.3(API级别15,修订版3)或更高系统映像目标的AVD配置。图形加速不适用于早期的系统映像。

如果您是从Android Studio运行模拟器,请使用启用了-gpu on选项的AVD运行您的Android应用程序:

在Android Studio中,单击您的Android应用程序模块文件夹,然后选择“运行”>编辑配置...

在“运行/调试配置”对话框的左侧面板中,选择您的Android运行配置或创建新配置。

在“目标设备”选项下,选择您在上一过程中创建的AVD。

在“模拟器”选项卡的“其他命令行选项”字段中,输入: -gpu on 使用此运行配置运行您的Android项目。

相关问题