如何在AVD Eclipse上运行和编译Android应用程序(how to run and compile Android Apps on AVD Eclipse)

编程入门 行业动态 更新时间:2024-10-24 06:34:46
如何在AVD Eclipse上运行和编译Android应用程序(how to run and compile Android Apps on AVD Eclipse)

请帮帮我... :( 我从google play下载了Android ADT并将其所有SDK等更新到最新版本,并且我还安装了Java Runtime(SE)最新版本。 现在根据任何基础学习课程,我想运行第一个App“Hello World!” 在AVD。 例如:从菜单中我只需单击“新建”并选择“Android应用程序项目”。 然后我就像所有培训一样设置应用名称,项目名称和包名称,这里没有错误,一切顺利。 之后我必须选择我的SDK,为了上课,我选择了组合框如下:

然后我没有更改并将所有选项保留为默认值。 最后点击Finish按钮。 现在我可以在设计模式下看到我的第一个程序环境。 问题在这里: 最后,我想用AVD运行我的第一个程序,如下所示:

并运行AVD。 第一个问题:经过很长时间(差不多3或6分钟)AVD模拟Andriod智能手机。 第二个问题:在菜单屏幕中我看不到我的第一个应用程序图标,所以我无法运行它。 第3个问题:如果我想使用Intelx86运行AVD,模拟器运行很长时间并且说出这个错误:

为AVD'AVD_for_AVD_for_test_5_1in_WVG​​A'仿真器启动仿真器:无法打开HAX设备! HAX无法运行,仿真器在仿真模式仿真器中运行:打开HAX设备失败


我尝试解决问题的方法 : 第一个问题:在编辑AVD中,我检查 快照并取消选中 主机GPU 结果 :第一次运行需要很长时间,但是在第一次运行之后很快。 第二个问题:我真的对此没有任何想法:( 结果 :我对Android开发计划感到失望。 这非常复杂和耗时。 第三个问题:我甚至在我的System Bios上查看 Intel Vitalization ,我确信它的工作正常,因为我已经在VMware机器上运行需要此选项的Windows 2008 R2。 结果 :我仍有这个问题... AVD在Intel x86模式下不起作用。 最后,我的系统配置是: 操作系统:Window 7 Ultimate与最新更新。 CPU:Intel Corei7 2630QM 2.00GHz。 RAM:8 GB。 图:英特尔和2GB Nvidia。

所以请帮助我。 我真的很想学习Android编程:((


现在感谢 Rohan Kandwal我可以在英特尔X86模式下快速运行模拟器,但我仍然看不到我的应用程序图标

please help me... :( I downloaded Android ADT from google play and update all of it's SDK and etc to last version and also I've installed Java Runtime(SE) last version. Now according to any basic learning courses, I want to run the first App "Hello World!" in AVD. For example : from menu I just click "new" and select "Android Application Project". then I just set App Name, project Name and Package Name just as like all trainings and there is no error in here and everythings goes well. after that I must choose my SDKs and in order to lessons, I was choose combo boxes as bellow :

Then I didn't change and left all options to their default. and finally click on Finish button. now I can see my first program environment but in design mode. the problems are here : at last, I want run my first program with AVD as shown in bellow :

and run AVD. 1st problem : after long time(almost 3 or 6 min) AVD simulate Andriod smart phone. 2nd problem : in menu screen i can't see my first App Icon so I can't Run It. 3rd problem : If I want Run AVD with Intelx86, the emulator Run after horrible long time and say this error:

Starting emulator for AVD 'AVD_for_AVD_for_test_5_1in_WVGA' emulator: Failed to open the HAX device! HAX is not working and emulator runs in emulation mode emulator: Open HAX device failed


The Ways I tried to solve my problems : 1st problem: In Edit AVD I check snapshot and uncheck host GPU Result: the first Running takes long same ago but after first time comes fast. 2nd problem: I'm really don't have any Idea for this :( Result: I'm Disappointed in Android Development Programs. It's very complicated and time-consuming . 3rd problem: I even check Intel Vitalization on my System Bios and i'm sure it's work because i already run Windows 2008 R2 on VMware machine that need to this Option. Result: I Still have that problem... AVD does not work in Intel x86 Mode. In Finally, my system configuration is : OS: Window 7 Ultimate with last Updates. CPU: Intel Corei7 2630QM 2.00GHz. RAM:8 GB. Graphic: Intel and 2GB Nvidia.

so please help me. I'm really like to learn Android Programming :((


now thanks to Rohan Kandwal I can run emulator very fast in Intel X86 Mode but still i can't see my app Icon

最满意答案

对于菜单中没有的应用程序,我认为你不是从eclipse运行项目而只是查看模拟器。 请从您正在使用的IDE运行项目,例如。 蚀。

如果已运行应用程序但仍未在模拟器上看到它,请发布logcat

有关HAX的问题,请转到该文件夹

[Android SDK Root]\extras\intel\Hardware_Accelerated_Execution_Manager

然后运行IntelHaxm.exe并安装。 HAX

要运行应用程序,请right click on the project > Run as > Android Application 运行应用程序

For the application not present in the menu, I think that you are not running the project from eclipse and just looking into the emulator. Please run the project from the IDE that you are using eg. Eclipse.

If have run the app and still not seeing it on the emulator then please post the logcat.

For the problem regarding the HAX, go to the folder

[Android SDK Root]\extras\intel\Hardware_Accelerated_Execution_Manager

then run IntelHaxm.exe and install. HAX

For running the app, right click on the project > Run as > Android Applicationrun app

更多推荐

本文发布于:2023-04-28 02:37:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1330266.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   如何在   Eclipse   Android   AVD

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!