2017-12-29 2 views
1

안드로이드 에뮬레이터 API 광고 (27)와 함께 작업하고 나에게 오류를 제공하지 API 작동하지 : 나는 소프트웨어 그래픽 에뮬레이터 그냥 빈 화면을 표시 선택할 때안드로이드 스튜디오 에뮬레이터 (27)

5:36 PM Emulator: init: Could not find wglGetExtensionsStringARB! 

    5:36 PM Emulator: emulator: ERROR: Missing initial data partition file: C:\Users\ACER\.android\avd\Nexus_5_API_27_1.avd/userdata.img 

    5:36 PM Emulator: getGLES2ExtensionString: Could not find GLES 2.x config! 

    5:36 PM Emulator: Failed to obtain GLES 2.x extensions string! 

    5:36 PM Emulator: Could not initialize emulated framebuffer 

    5:36 PM Emulator: emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it. 

    5:36 PM Emulator: Process finished with exit code -1073741819 (0xC0000005) 

    5:51 PM Emulator: qemu-system-i386.exe: Unable to open C:\Users\ACER\.android\avd\Galaxy_Nexus_API_25.avd\data\misc\pstore\pstore.bin: Permission denied 

    5:51 PM Emulator: Process finished with exit code 0 

그래픽의 설정은 자동입니다.

+0

어떤 Android Studio 버전을 사용하고 있습니까? – Yuliwee

+0

Android Studio 3.0.1, Windows 10 pro –

+0

Android 애플리케이션 실행 중 오류 - OpenglES 에뮬레이션을 초기화하지 못했습니다. '-gpu off'를 사용하여 비활성화하십시오.] (https://stackoverflow.com/questions/30686324/) android-application-can-not-initialize-opengles-emulatio) –

답변

2

는 명확하게, 당신은 "소프트웨어 GLES"로 렌더링, 또는 당신의 그래픽 카드 /또는는 OpenGL 드라이버를 설치를 업그레이드하기 위해 명령 줄 스위치 -gpu off를 사용할 수 있습니다 의미 ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it. 읽습니다.

release notes을 보면 -gpu swiftshader_indirect-gpu angle_indirect의 두 가지 새로운 명령 줄 스위치가 있습니다. 이 질문에는 아마도 작은 세부 사항이 없을 것입니다 : 어떤 CPU, 얼마나 많은 RAM 및 어떤 그래픽 어댑터를 사용하고 있습니까? 적절한 하드웨어를 사용할 수있는 경우가 아니라면 "Use Gpu Use (호스트 Gpu 사용)"확인란의 선택을 취소해야합니다.

+0

감사합니다. 당신은 정말로 저의 하루를 저장했습니다. 업데이트 후에 조금 이상합니다. 보통 gpu 스위치없이 내 에뮬레이터를 돌렸고 업데이트 할 때까지 잘 작동했습니다. 오류가 발생하면'-gpu off '스위치를 사용해 보았지만 에뮬레이터의 성능은 상당히 떨어졌지만'-gpu switftshader_indirect'를 사용하면 에뮬레이터가 더 부드럽게 보입니다. 그 이유를 아십니까? –

+0

@Nanangarsyad 왜냐하면'-gpu off'는 순수한 소프트웨어 래스터 라이저 (가장 렌더링 가능성이 가장 높기 때문)이고'-gpu switftshader_indirect'는 SwiftShader OpenGL ES 드라이버이며 간접 렌더링 (둘 다 GPU가 아닌 CPU에서 실행 됨) . https://swiftshader.googlesource.com/SwiftShader를 참조하십시오. –

-1

대신 Genymotion Emulator를 사용할 수 있습니다. 아마도 (일시적으로)이 문제를 해결할 것입니다.

+0

이 문제와 직접적인 관련이 있습니까? OP가 대안을 요구하지 않는 동안 이러한 "사용하는 Genymotion"대답의 톤이 있습니다. 그것은 "Windows 문제가 있습니다"- "Linux를 설치할 수 있습니다"와 같은 주제를 벗어난 것입니다. –

관련 문제