简体   繁体   English

Android Studio AVD无法正常工作或无响应

[英]Android Studio AVD not working or unresponsive

I've got this problem with AVD emulation in Android Studio, I am working on a machine I got at work. 我在Android Studio中使用AVD仿真遇到了这个问题,我在使用的机器上工作。

With "use host GPU" enabled , I get this log: 启用“使用主机GPU”后 ,我得到以下日志:

C:\Users\username\AppData\Local\Android\sdk\tools\emulator.exe -avd Nexus_4_API_21 -netspeed full -netdelay none

emulator: device fd:540
HAX is working and emulator runs in fast virt mode
emulator: warning: opening audio output failed
creating window 54 108 446 742

../../sdk/emulator/opengl//host/libs/Translator/GLES_V2//GLESv2Imp.cpp:glAttachShader:156 error 0x501
../../sdk/emulator/opengl//host/libs/Translator/GLES_V2//GLESv2Imp.cpp:glAttachShader:156 error 0x501
../../sdk/emulator/opengl//host/libs/Translator/GLES_V2//GLESv2Imp.cpp:glDetachShader:559 error 0x501
../../sdk/emulator/opengl//host/libs/Translator/GLES_V2//GLESv2Imp.cpp:glDetachShader:559 error 0x501
../../sdk/emulator/opengl//host/libs/Translator/GLES_CM//GLEScmImp.cpp:glGenFramebuffersOES:1934 error 0x502
../../sdk/emulator/opengl//host/libs/Translator/GLES_CM//GLEScmImp.cpp:glBindFramebufferOES:1909 error 0x502
../../sdk/emulator/opengl//host/libs/Translator/GLES_CM//GLEScmImp.cpp:glFramebufferTexture2DOES:1954 error 0x502
../../sdk/emulator/opengl//host/libs/Translator/GLES_CM//GLEScmImp.cpp:glCheckFramebufferStatusOES:1947 error 0x502
ColorBuffer::bind_fbo: FBO not complete: 0

../../sdk/emulator/opengl//host/libs/Translator/GLES_CM//GLEScmImp.cpp:glBindFramebufferOES:1909 error 0x502
../../sdk/emulator/opengl//host/libs/Translator/GLES_CM//GLEScmImp.cpp:glDeleteFramebuffersOES:1925 error 0x502

Error accepting connection, aborting

With "use host GPU" disabled , after 1 h loading I finally got to testing my sample app. 禁用“使用主机GPU”后,加载1小时后,我终于开始测试示例应用程序了。 Partly due to the specs: 部分由于规格:

CPU: Intel Core 2 Duo E7500 @ 2.93 GHz CPU:Intel Core 2 Duo E7500 @ 2.93 GHz

RAM: 2GB 内存:2GB

Graphics: Intel G33/31 Express Chipset 显示卡:Intel G33 / 31 Express Chipset

Sure, you can say:"There's your problem," and flag this as a moronic question, but keep in mind this is a machine I got to work on. 当然,您可以说:“这是您的问题”,并将其标记为一个普通的问题,但是请记住,这是我必须使用的机器。

I have read all kinds of forums, went through all the stackoverflow questions and I haven't found anyone with a problem quite like mine. 我已经阅读了各种论坛,讨论了所有stackoverflow问题,但还没有人遇到像我这样的问题。

I also don't have any experience with the OpenGL lib, which renders my only related find useless. 我也没有OpenGL lib的经验,这使我唯一的相关发现无用。

My best guess is that the integrated graphics can't play with the OpenGL lib because they can't get on its level. 我最好的猜测是,集成图形无法与OpenGL lib一起播放,因为它们无法达到其水平。 They don't even lift. 他们甚至不举。 (Don't support the functions/methods of OpenGL, causing errors.) (不支持OpenGL的功能/方法,从而导致错误。)

To anyone interested in helping me out, I pose this question: 对于有兴趣帮助我的人,我提出以下问题:

Can I get the emulator to work on this machine with GPU acceleration enabled? 我可以在启用GPU加速的情况下使模拟器在这台机器上运行吗?

Cheers. 干杯。

The answer is NO, one can not get the emulator to work on such a machine with GPU acceleration enabled without any further modifications to the system. 答案是否定的,如果不对系统进行任何进一步的修改,就无法使模拟器在启用了GPU加速功能的机器上运行。

It is better to get any android mobile device , a used older make is your best bet. 最好使用任何Android移动设备 ,最好使用二手旧品牌。

Having resorted to using a Samsung Galaxy Ace S5830, which cost me about 20€, I am able to continue my endeavors at programming apps for android. 诉诸使用了三星Galaxy Ace S5830(花费约20欧元)之后,我就可以继续为Android编程应用程序。 It supports API 10, android 2.3.3, which is just about what I need for my app. 它支持API 10,android 2.3.3,这与我的应用程序所需的差不多。

Cheers. 干杯。

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

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