运行Android模拟器需要太长时间,寻找替代品 [英] takes too long to run android simulator, looking for alternatives

查看:98
本文介绍了运行Android模拟器需要太长时间,寻找替代品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我是Android开发的新手。我已经安装了AVD和JAVA SDK,并且能够在Simulator上运行我的测试应用程序。 />
(如下面的链接所示)

https://sites.google.com/site/barbarahohensee/android-development-on-ubuntu



但问题是:在模拟器上运行需要很长时间。我正在开发基本的

页面,其中包含按钮和textBox以及最后一个付款选项。每次我想检查GUI时,我都不想运行模拟器。

请建议。

Hello all,

I am very new to android development.I have installed AVD and JAVA SDK and able to run my test application on Simulator also.
(As mentioned in the below link)
https://sites.google.com/site/barbarahohensee/android-development-on-ubuntu

But the issue is:It takes a long time to run on simulator. I am on my way to develop very few basic
pages with buttons and textBox and in last payment option. I dont want to run simulator every time I want to check GUI.
Please suggest.

推荐答案

很久以前我已经尝试过android模拟器,它很慢。原因如下:

android模拟器在你的x86 / x64机器上运行并在硬件层上模拟android设备:它模拟一个arm处理器以及一些其他硬件功能(如屏幕,输入设备,等等)。 ..)。更糟糕的是,它使用了一个基于软件的旧opengl 1实现编译来武装由模拟arm硬件执行的机器代码!这是一个非常缓慢的解决方案。我还没试过,但今天有基于x86的Android设备,模拟器也支持x86。如果这与在android模拟器站点上编写的内容一致,则可以运行具有硬件虚拟化支持的x86模拟器,但是至少在编译时应该使用x86目标。 opengl是否仍然是硬件/软件我不知道(如果你完全使用它),但即使是软件opengl也可以通过这种设置表现得更好。



检查如何设置x86虚拟设备: http://developer.android.com/tools/devices/emulator.html [ ^ ]

我还没有尝试过,但如果这些人很好地实现了x86仿真,那么它必须具有极快(接近原生)的执行速度,特别是如果你在一台好的台式机上开发(只要你的x86台式机不是这是一个不支持硬件虚拟化的古老版本。)
Long ago I have tried the android emulator and it was hell slow. Here is why:
The android emulator runs on your x86/x64 machine and emulates the android device on hardware layer: It emulates an arm processor along with some other hardware features (like screen, input devices, ...). And to make things worse it used a software based old opengl 1 implementation compiled to arm machine code executed by the emulated arm hardware!!! This is a terribly slow solution. I haven't tried it but today there are x86 based android devices and the emulator also supports x86. If this is true along with the things that has been written on the android emulator site then it is possible to run an x86 emulator with hardware virtualization support but then you should use x86 target when you compile at least when you are debugging. Whether opengl is still hardware/software I don't know (if you use it at all) but even a software opengl would perform much better with this setup.

Check out how to setup an x86 virtual device: http://developer.android.com/tools/devices/emulator.html[^]
I haven't tried it but if the guys implemented x86 emulation well then it must have extremely fast (near to native) execution speed especially if you are developing on a good desktop machine (as long as your x86 desktop machine isn't an ancient one that doesn't support hardware virtualization).


这篇关于运行Android模拟器需要太长时间,寻找替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆