简体   繁体   English

单击“在Eclipse中运行”,没有任何反应

[英]Click Run in eclipse and nothing happens

I have situation in eclipse, before i work in eclipse app was running fine, but today, not working. 在eclipse应用中运行之前,我遇到了eclipse中的情况,但是今天却无法正常工作。 I click on progect->run as->android application. 我单击progect-> run as-> android应用程序。 And nothing happens, no error, no popup window, also nothing in console: 没有任何反应,没有错误,没有弹出窗口,控制台中也没有任何内容:

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!

Please tell me, how can i run my app in eclipse to android phone? 请告诉我,我该如何在Eclipse中将我的应用程序运行到android手机?

If you set GPU emulation to Yes for your AVD, then graphics acceleration is automatically enabled when you run it. 如果将AVD的GPU仿真设置为“是”,则在运行图形加速时会自动启用它。 If you did not enable GPU emulation when you created the AVD, you can still enable it at runtime. 如果在创建AVD时未启用GPU仿真,则仍可以在运行时启用它。

To enable graphics acceleration at runtime for an AVD: 要在运行时为AVD启用图形加速:

If you are running the emulator from the command line, just include the -gpu on option: 如果从命令行运行仿真器,则只需包括-gpu on选项:

emulator -avd -gpu on 仿真器-avd -gpu

Note: You must specify an AVD configuration that uses Android 4.0.3 (API Level 15, revision 3) or higher system image target. 注意:您必须指定使用Android 4.0.3(API级别15,修订版3)或更高版本的系统映像目标的AVD配置。 Graphics acceleration is not available for earlier system images. 图形加速不适用于早期的系统映像。

If you are running the emulator from Android Studio, run your Android application using an AVD with the -gpu on option enabled: 如果要从Android Studio运行模拟器,请使用启用了-gpu on选项的AVD运行Android应用程序:

In Android Studio, click your Android application module folder and then select Run > Edit Configurations... 在Android Studio中,单击您的Android应用程序模块文件夹,然后选择“运行”>“编辑配置...”。

In the left panel of the Run/Debug Configurations dialog, select your Android run configuration or create a new configuration. 在“运行/调试配置”对话框的左侧面板中,选择您的Android运行配置或创建新配置。

Under the Target Device options, select the AVD you created in the previous procedure. 在“目标设备”选项下,选择您在上一过程中创建的AVD。

In the Emulator tab, in the Additional command line options field, enter: -gpu on Run your Android project using this run configuration. 在“仿真器”选项卡的“其他命令行选项”字段中,输入:-gpu在“使用此运行配置运行Android项目”上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM