2015-10-15 96 views
0

我在日食中的情況,之前我在eclipse應用程序運行良好,但今天,不工作。我點擊progect-> run as-> android應用程序。並沒有任何反應,沒有錯誤,沒有彈出窗口,也沒什麼控制檯:點擊在eclipse中運行,什麼也沒有發生

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手機嗎?

+2

模擬器:錯誤:x86仿真當前需要硬件加速! –

+1

http://stackoverflow.com/questions/29136173/emulator-error-x86-emulation-currently-requires-hardware-acceleration –

+0

http://stackoverflow.com/questions/26355645/error-in-launching-avd –

回答

1

如果您爲AVD設置GPU仿真爲Yes,那麼運行時會自動啓用圖形加速。如果在創建AVD時未啓用GPU仿真,則仍可以在運行時啓用它。

爲了能夠在運行時的AVD圖形加速:

如果運行在命令行模擬器,只是包括選項-gpu:

模擬器-avd -gpu上

注意:您必須指定使用Android 4.0.3(API級別15,版本3)或更高級別系統映像目標的AVD配置。圖形加速不適用於較早的系統映像。

如果您是從Android Studio中運行模擬器,運行使用AVD啓用的選項-gpu Android應用程序:

在Android Studio中,單擊您的Android應用程序模塊文件夾,然後選擇Run>編輯配置...

在運行/調試配置對話框的左側面板中,選擇您的Android運行配置或創建新配置。

在目標設備選項下,選擇您在前面的過程中創建的AVD。

在模擬器選項卡的附加命令行選項字段中,輸入: -gpu 使用此運行配置運行您的Android項目。