program story

기기 대기 중 오류 : 에뮬레이터가 온라인 상태가되기를 기다리는 300 초 후 시간 초과

inputbox 2021. 1. 7. 07:57
반응형

기기 대기 중 오류 : 에뮬레이터가 온라인 상태가되기를 기다리는 300 초 후 시간 초과


Android Studio 2.0 에뮬레이터를 사용하려고했지만 에뮬레이터에서 내 앱을 실행할 수 없습니다. 내 앱을 실행하면 다음 세부 정보와 함께 에뮬레이터가 표시됩니다.

Hax가 활성화되었습니다.

  • Hax ram_size 0x800000000

  • HAx가 작동하고 에뮬레이터

  • 빠른 virt 모드에서 실행됩니다.

  • 포트 5554의 콘솔,

  • 포트 5555의 ADB

그 후 다음 TAB Launching 앱으로 이동하여 장치가 온라인 상태가 될 때까지 기다리는 중이라는 메시지가 표시됩니다. 그 후 오류가 표시됩니다. 장치를 기다리는 동안 오류 : 에뮬레이터가 온라인 상태가되기를 기다리는 300 초 후 시간이 초과되었습니다.

내가 지금까지 시도한 것.

  • 최신 SDK에 대한 모든 업데이트와 함께 새로운 Android Studio 2.0 설치
  • 에뮬레이터 메모리를 늘리는 데 지쳤습니다.
  • 최신 SDK와 함께 Android Studio 2.1 베타 설치
  • Google에서이 문제에 대해 토론했습니다.

누구나 어떤 해결책을 알고 있습니다.

미리 감사드립니다.

편집하다

아직 해결책을 찾지 못했습니다. 이전 버전에서 알려진 버그이기 때문에 2016 년 5 월 4 일에 새로운 호를 열었습니다. 동일한 문제가있는 경우 다음 링크에 신고 해주세요.

https://code.google.com/p/android/issues/detail?id=209095


나를위한 해결책은 Android Virtual Device의 Graphics 옵션 SoftwareAutomatic또는 대신 에 설정하는 것이 었습니다 Hardware.

전용 그래픽 카드가없는 Windows 시스템에서 작업하고 있기 때문에 이것이 해결책이라고 생각합니다.


adb에서 전달을 사용 설정했을 수 있습니다. 시도해 볼 수 있습니다. Android 스튜디오를 종료하고 터미널을 시작합니다. 다음 명령을 실행하십시오.

adb kill-server
adb forward --remove-all
adb start-server 

이제 Android Studio를 시작하고 다시 시도 할 수 있습니다.


왜 이런 일이 발생하는지 확실하지 않지만 해결 방법을 찾았습니다.

응용 프로그램 실행 Menu->Tools->Android옵션으로 이동하여 선택을 취소 Enable ADB Integration하십시오. 이제 에뮬레이터가 시작되지만 앱은 실행되지 않습니다. 에뮬레이터가 완전히 실행되면 Enable ADB Integration옵션을 확인 하고 앱을 다시 실행하십시오. 이제 이미 실행중인 에뮬레이터에서 앱이 시작됩니다.


또한 잘못 될 수있는 사항 : Mac 용 Docker를 종료해야합니다 (다른 모든 종류의 Docker 설치도 가능).


Android Studio 명령 줄로 이동하여 다음 단계를 따르세요.

  • __> cd /Users/your_root_name/.android/avd
  • __> ls
  • __> rm -r Nexus_5X_Edited_API_17.avd 두 개의 avd 파일이 있습니다.

앱을 다시 실행하십시오.


시도해 볼 수 있습니다.

  • 콘솔에서 수동으로 에뮬레이터를 실행하고 adb가 android studio에서 연결할 수 있는지 ( "see") 확인합니다. 전혀 실행되지 않습니까?
  • avd를 삭제하고 테스트를 위해 새 것을 다시 만드십시오. 2.0에서는 항상 좋은 생각입니다. 많은 것들이 변하고 있습니다 (즉석 실행 등)
  • adb는 콘솔에서 무엇을 말합니까? adb kill-server, adb start-server에뮬레이터를 시작한 다음 adb devices에뮬레이터를 나열합니까?

내 컴퓨터에서 VirtualBox를 종료 한 후 문제가 사라졌습니다.

내가 아는 한 가지는 Linux KVM이 VirtualBox와 잘 어울리지 않는다는 것입니다.


Android 에뮬레이터의 경우 최신 SDK로 업그레이드합니다.

  • 512MB RAM 사용
  • 256MB 힙

기본 디스크 공간을 그대로 둘 수 있습니다.


I had the same problem. I'm using Android Studio 2.3 and Debian 9.1 Stretch 64 bits. In my case, the problem was in default settings established in graphics aceleration configuration. To solve the problem I opened the AVD Manager, then I selected the device and I opened config file (config.ini) selecting "Show on disk" option whitin "Actions" column. Within the file, I changed the value setted in hw.gpu.mode variable from mesa to swiftshader. After saved the changes, the emulator started without any problems. More options availables could be found on this link.


These are the steps I took (I'm on Linux).

  • Switched to Software rendering (works but is too slow)
  • Tried running on commanline and an error displayed.
  • Forced emulator to use the system graphic drivers.

First, as @jlars62 suggested, I tried using Switching the Graphics to "Software" and this DID work. However, the performance is far to slow so I dug a little deeper.

Then I tried running the device from the console, as @CaptainCrunch suggestion. (My device was created in Android Studio; emulator in the Sdk may be in a different place on your system)

$ ~/Android/Sdk/emulator/emulator -avd Nexus_6_Edited_768Mb_API_23

For me this produced the following error:

libGL error: unable to load driver: i965_dri.so 
libGL error: driver
pointer missing libGL error: failed to load driver: i965 
...

Which I tracked down (on ArchLinux) to mean it's using the wrong graphic drivers (Android Sdk comes with it's own). You can force the system ones on the commandline with -use-system-libs:

$ ~/Android/Sdk/emulator/emulator -avd Nexus_6_Edited_768Mb_API_23 -use-system-libs

To force Android Studio to do this you can intercept the call to "emulator" like so (See Mike42) :

$ cd ~/Android/Sdk/tools/
$ mv emulator emulator.0
$ touch emulator
$ chmod +x emulator

In the new emulator file add this:

#!/bin/sh
set -ex
$0.0 $@ -use-system-libs

Usually, deleting the current emulator that doesn't work anymore and creating it again will solve the issue. I've had it 5 minutes ago and that's how I solved it.


I experienced a similar issue with android studio 2.2. Re-installing a new system image didnt resolve for me. Then found this solution on this link.

unchecking the Enable ADB Integration option and checking it back seem to resolve it for me. I hope this helps someone out there.


Android API Version for application and device should match. Check if minSdkVersion and targetSdkVersion in Gradle Scripts - build.gradle (Module: app) correspond device API.

Also low versions (e.g. API 15) result in ide-emulator link failure, inspite of applicatrion and device versions match.


I had the same problem. I removed virtual device and run app on my phone - worked well. To remove virtual device: Click icon "AVD Manager" in Android Studio, select virtual device and in context menu click "Delete". Then turn on on the phone "Developer mode". Connect phone via USB to the laptop.


This error is gone for me by remove the AVD and create a new one.

after some compile and clean, the error was gone away.


I have faced the same issue you have mentioned and could solve it by just deleting the current avd and creating a new one.It's working perfectly well now.

ReferenceURL : https://stackoverflow.com/questions/36675654/error-while-waiting-for-device-time-out-after-300seconds-waiting-for-emulator-t

반응형