gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 11:03:37 25 4
gpt4 key购买 nike

我在 Eclipse 中遇到了情况,在我在 Eclipse 工作之前,应用程序运行良好,但今天无法正常工作。我点击 progect->run as->android application。没有任何反应,没有错误,没有弹出窗口,控制台中也没有任何内容:

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!

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

最佳答案

如果您将 AVD 的 GPU 模拟设置为"is",则在运行它时会自动启用图形加速。如果您在创建 AVD 时没有启用 GPU 模拟,您仍然可以在运行时启用它。

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

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

模拟器-avd -gpu 开启

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

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

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

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

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

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

关于java - 单击“在 Eclipse 中运行”,但没有任何反应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33143087/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com