Android Emulator MACda ishlamaydi

Android Studio'yu yuklagandan so'ng Android Emulatoridan foydalanishga harakat qilaman. Ilgari Samsung S4 oldingi modelidan foydalanganman, lekin ba'zi xususiyatlar uchun Marshmallowga mos keladigan narsaga muhtojman.

Men ko'rayotgan muammolar:

  • -Emulator ishlamaydi
  • -Android ekrani uni yuklashga tayyorgarlik ko'rmoqda, biroq
  • emas
  • - Kutayotgan soatdan keyin android ekrani yo'qolsa, displeyda tizim javob bermayapti va kutish yoki o'ldirishni ko'rsatadi. jarayoni
  • - Men ekranni ko'rsatayotganda AVD ilovasini ishga tushirishga harakat qilsam, Android Studio'dan kelgan xatolik AVD ning APK-ni o'rnatmaganligini bildiradi to'g'ri va ularni o'chirish yoki bekor qilish.

Men sinab ko'rgan yechimlar:

  • -Lowering AVD RAM to 512 & 236 MB
  • -Turning emulator cameras off
  • -Turning off Audio
  • -Graphics preference set to software
  • -Deleting and redownloading everything
  • -Checking to make sure API matches SDK
  • -Trying different API (25)
  • -Downloading BlueStacks (Didn't realize it uses Kitkat)

Sekin/ishlamaydigan emulyatorlar uchun echimlar ko'pchiligi Emulator parametrlari bilan almashtirildi va o'zgartirildi. Men uch kun mobaynida bu xususda gaplashdim va hal qilish uchun umidsizman, shuning uchun 23+ Android API-ni talab qiladigan ilovani sinab ko'rishim mumkin.

Bir oz yonma-yon eslatishim kerakki, men tashqariga chiqmaganman. 2010 yil o'rtalarida OSX Sierra, Core 2 duo protsessor, 16GB RAM, 1TB qattiq diskda ishlayapman.

** Yangilash Men emulsatorni buyruq satri orqali yugurib chiqdim va bu erda men olgan xabar. Emaulator hali Android Screen-da yuklanmoqda, ammo "Adb ulangan, proksing ma'lumotlarini ishga tushirishni boshlagandan so'ng" oxirgi 30 daqiqa ichida chiqdi bo'lmaydi.

Macs-MacBook-Pro-2:sdk joncorrin$ tools/emulator @Nexus_5X_API_23 -verbose
emulator:Android emulator version 25.3.0.0 (build_id 3394391)
emulator:Found AVD name 'Nexus_5X_API_23'
emulator:Found AVD target architecture: x86
emulator:argv[0]: 'tools/emulator'; program directory: '/Users/mac/Library/Android/sdk/tools'
emulator:  Found directory: /Users/mac/Library/Android/sdk/system-images/android-23/google_apis/x86/

emulator:Probing for /Users/mac/Library/Android/sdk/system-images/android-23/google_apis/x86//kernel-ranchu: file exists
emulator:Auto-config: -engine qemu2 (based on configuration)
emulator:  Found directory: /Users/mac/Library/Android/sdk/system-images/android-23/google_apis/x86/

emulator:try dir /Users/mac/Library/Android/sdk/tools
emulator:try dir tools/
emulator:try dir emulator
emulator:Found target-specific 64-bit emulator binary: emulator/qemu/darwin-x86_64/qemu-system-i386
emulator:Adding library search path: 'emulator/lib64'
emulator:  Found directory: /Users/mac/Library/Android/sdk/system-images/android-23/google_apis/x86/

emulator:  Found directory: /Users/mac/Library/Android/sdk/system-images/android-23/google_apis/x86/

emulator:GPU emulation is disabled
emulator: Adding library search path for Qt: 'emulator/lib64/qt/lib'
emulator: Setting Qt plugin search path: QT_QPA_PLATFORM_PLUGIN_PATH=emulator/lib64/qt/plugins
emulator: Running :emulator/qemu/darwin-x86_64/qemu-system-i386
emulator: qemu backend: argv[00] = "emulator/qemu/darwin-x86_64/qemu-system-i386"
emulator: qemu backend: argv[01] = "@Nexus_5X_API_23"
emulator: qemu backend: argv[02] = "-verbose"
emulator: Concatenated backend parameters:
 emulator/qemu/darwin-x86_64/qemu-system-i386 @Nexus_5X_API_23 -verbose
emulator: WARNING: Crash service did not start

emulator: Android virtual device file at: /Users/mac/.android/avd/Nexus_5X_API_23.ini
emulator: virtual device content at /Users/mac/.android/avd/Nexus_5X_API_23.avd
emulator: virtual device config file: /Users/mac/.android/avd/Nexus_5X_API_23.avd/config.ini
emulator: using core hw config path: /Users/mac/.android/avd/Nexus_5X_API_23.avd/hardware-qemu.ini
emulator: Found AVD target API level: 23
emulator: Read property file at ./system-images/android-23/google_apis/x86//build.prop
emulator: No boot.prop property file found.
emulator: found skin 'nexus_5x' in directory: /Users/mac/Library/Android/sdk/skins/
emulator: autoconfig: -skin nexus_5x
emulator: autoconfig: -skindir /Users/mac/Library/Android/sdk/skins/
emulator: autoconfig: -kernel ./system-images/android-23/google_apis/x86//kernel-ranchu
emulator: Target arch = 'x86'
emulator: Auto-config: -qemu -cpu qemu32
emulator: Auto-detect: Kernel image requires new device naming scheme.
emulator: Auto-detect: Kernel does not support YAFFS2 partitions.
emulator: autoconfig: -ramdisk ./system-images/android-23/google_apis/x86//ramdisk.img
emulator: Using initial system image: ./system-images/android-23/google_apis/x86//system.img
emulator: autoconfig: -data /Users/mac/.android/avd/Nexus_5X_API_23.avd/userdata-qemu.img
emulator: autoconfig: -initdata /Users/mac/.android/avd/Nexus_5X_API_23.avd/userdata.img
emulator: autoconfig: -cache /Users/mac/.android/avd/Nexus_5X_API_23.avd/cache.img
emulator: autoconfig: -sdcard /Users/mac/.android/avd/Nexus_5X_API_23.avd/sdcard.img
emulator: Increasing RAM size to 1024MB
emulator: System image is read only
emulator: GPU emulation is disabled
emulator: Found 2 DNS servers: 75.75.75.75 75.75.76.76
emulator: trying to load skin file '/Users/mac/Library/Android/sdk/skins//nexus_5x/layout'
emulator: CPU Acceleration: working
emulator: CPU Acceleration status: HAXM version 6.0.5 (3) is installed and usable.
emulator: Adjusting Contiguous Memory Allocation of 1080x1920 framebuffer for software renderer to 16MB.
emulator: Found 2 DNS servers: 75.75.75.75 75.75.76.76
Content of hardware configuration file:
  hw.cpu.arch = x86
  hw.cpu.model = qemu32
  hw.cpu.ncore = 1
  hw.ramSize = 1024
  hw.screen = multi-touch
  hw.mainKeys = false
  hw.trackBall = false
  hw.keyboard = true
  hw.keyboard.lid = false
  hw.keyboard.charmap = qwerty2
  hw.dPad = false
  hw.gsmModem = true
  hw.gps = true
  hw.battery = true
  hw.accelerometer = true
  hw.audioInput = true
  hw.audioOutput = true
  hw.sdCard = true
  hw.sdCard.path = /Users/mac/.android/avd/Nexus_5X_API_23.avd/sdcard.img
  disk.cachePartition = true
  disk.cachePartition.path = /Users/mac/.android/avd/Nexus_5X_API_23.avd/cache.img
  disk.cachePartition.size = 66m
  hw.lcd.width = 1080
  hw.lcd.height = 1920
  hw.lcd.depth = 16
  hw.lcd.density = 420
  hw.lcd.backlight = true
  hw.gpu.enabled = false
  hw.gpu.mode = guest
  hw.gpu.blacklisted = no
  hw.initialOrientation = Portrait
  hw.camera.back = emulated
  hw.camera.front = emulated
  vm.heapSize = 256
  hw.sensors.light = true
  hw.sensors.pressure = true
  hw.sensors.humidity = true
  hw.sensors.proximity = true
  hw.sensors.magnetic_field = true
  hw.sensors.orientation = true
  hw.sensors.temperature = true
  hw.useext4 = true
  kernel.path = ./system-images/android-23/google_apis/x86//kernel-ranchu
  kernel.newDeviceNaming = yes
  kernel.supportsYaffs2 = no
  disk.ramdisk.path = ./system-images/android-23/google_apis/x86//ramdisk.img
  disk.systemPartition.initPath = ./system-images/android-23/google_apis/x86//system.img
  disk.systemPartition.size = 1280m
  disk.dataPartition.path = /Users/mac/.android/avd/Nexus_5X_API_23.avd/userdata-qemu.img
  disk.dataPartition.size = 2g
  disk.encryptionKeyPartition.path = /Users/mac/.android/avd/Nexus_5X_API_23.avd/encryptionkey.img
  avd.name = Nexus_5X_API_23
.
QEMU options list:
emulator: argv[00] = "emulator/qemu/darwin-x86_64/qemu-system-i386"
emulator: argv[01] = "-dns-server"
emulator: argv[02] = "75.75.75.75,75.75.76.76"
emulator: argv[03] = "-serial"
emulator: argv[04] = "null"
emulator: argv[05] = "-cpu"
emulator: argv[06] = "android32"
emulator: argv[07] = "-enable-hax"
emulator: argv[08] = "-m"
emulator: argv[09] = "1024"
emulator: argv[10] = "-lcd-density"
emulator: argv[11] = "420"
emulator: argv[12] = "-kernel"
emulator: argv[13] = "./system-images/android-23/google_apis/x86//kernel-ranchu"
emulator: argv[14] = "-initrd"
emulator: argv[15] = "./system-images/android-23/google_apis/x86//ramdisk.img"
emulator: argv[16] = "-object"
emulator: argv[17] = "iothread,id=disk-iothread"
emulator: argv[18] = "-drive"
emulator: argv[19] = "if=none,overlap-check=none,cache=unsafe,index=0,id=system,file=/Users/mac/.android/avd/Nexus_5X_API_23.avd/system.img.qcow2,read-only"
emulator: argv[20] = "-device"
emulator: argv[21] = "virtio-blk-pci,drive=system,iothread=disk-iothread,modern-pio-notify"
emulator: argv[22] = "-drive"
emulator: argv[23] = "if=none,overlap-check=none,cache=unsafe,index=1,id=cache,file=/Users/mac/.android/avd/Nexus_5X_API_23.avd/cache.img.qcow2,l2-cache-size=1048576"
emulator: argv[24] = "-device"
emulator: argv[25] = "virtio-blk-pci,drive=cache,iothread=disk-iothread,modern-pio-notify"
emulator: argv[26] = "-drive"
emulator: argv[27] = "if=none,overlap-check=none,cache=unsafe,index=2,id=userdata,file=/Users/mac/.android/avd/Nexus_5X_API_23.avd/userdata-qemu.img.qcow2,l2-cache-size=1048576"
emulator: argv[28] = "-device"
emulator: argv[29] = "virtio-blk-pci,drive=userdata,iothread=disk-iothread,modern-pio-notify"
emulator: argv[30] = "-drive"
emulator: argv[31] = "if=none,overlap-check=none,cache=unsafe,index=3,id=encrypt,file=/Users/mac/.android/avd/Nexus_5X_API_23.avd/encryptionkey.img.qcow2,l2-cache-size=1048576"
emulator: argv[32] = "-device"
emulator: argv[33] = "virtio-blk-pci,drive=encrypt,iothread=disk-iothread,modern-pio-notify"
emulator: argv[34] = "-drive"
emulator: argv[35] = "if=none,overlap-check=none,cache=unsafe,index=4,id=sdcard,file=/Users/mac/.android/avd/Nexus_5X_API_23.avd/sdcard.img.qcow2,l2-cache-size=1048576"
emulator: argv[36] = "-device"
emulator: argv[37] = "virtio-blk-pci,drive=sdcard,iothread=disk-iothread,modern-pio-notify"
emulator: argv[38] = "-netdev"
emulator: argv[39] = "user,id=mynet"
emulator: argv[40] = "-device"
emulator: argv[41] = "virtio-net-pci,netdev=mynet"
emulator: argv[42] = "-netdev"
emulator: argv[43] = "user,id=mynet2,net=10.0.3.0/24"
emulator: argv[44] = "-device"
emulator: argv[45] = "virtio-net-pci,netdev=mynet2"
emulator: argv[46] = "-show-cursor"
emulator: argv[47] = "-L"
emulator: argv[48] = "emulator/lib/pc-bios"
emulator: argv[49] = "-soundhw"
emulator: argv[50] = "hda"
emulator: argv[51] = "-vga"
emulator: argv[52] = "none"
emulator: argv[53] = "-append"
emulator: argv[54] = "qemu=1 androidboot.hardware=ranchu clocksource=pit android.qemud=1 console=0 console=0 android.checkjni=1 qemu.gles=2 qemu.encrypt=1 cma=32M ndns=2"
emulator: argv[55] = "-android-hw"
emulator: argv[56] = "/Users/mac/.android/avd/Nexus_5X_API_23.avd/hardware-qemu.ini"
Concatenated QEMU options:
 emulator/qemu/darwin-x86_64/qemu-system-i386 -dns-server 75.75.75.75,75.75.76.76 -serial null -cpu android32 -enable-hax -m 1024 -lcd-density 420 -kernel ./system-images/android-23/google_apis/x86//kernel-ranchu -initrd ./system-images/android-23/google_apis/x86//ramdisk.img -object iothread,id=disk-iothread -drive if=none,overlap-check=none,cache=unsafe,index=0,id=system,file=/Users/mac/.android/avd/Nexus_5X_API_23.avd/system.img.qcow2,read-only -device virtio-blk-pci,drive=system,iothread=disk-iothread,modern-pio-notify -drive if=none,overlap-check=none,cache=unsafe,index=1,id=cache,file=/Users/mac/.android/avd/Nexus_5X_API_23.avd/cache.img.qcow2,l2-cache-size=1048576 -device virtio-blk-pci,drive=cache,iothread=disk-iothread,modern-pio-notify -drive if=none,overlap-check=none,cache=unsafe,index=2,id=userdata,file=/Users/mac/.android/avd/Nexus_5X_API_23.avd/userdata-qemu.img.qcow2,l2-cache-size=1048576 -device virtio-blk-pci,drive=userdata,iothread=disk-iothread,modern-pio-notify -drive if=none,overlap-check=none,cache=unsafe,index=3,id=encrypt,file=/Users/mac/.android/avd/Nexus_5X_API_23.avd/encryptionkey.img.qcow2,l2-cache-size=1048576 -device virtio-blk-pci,drive=encrypt,iothread=disk-iothread,modern-pio-notify -drive if=none,overlap-check=none,cache=unsafe,index=4,id=sdcard,file=/Users/mac/.android/avd/Nexus_5X_API_23.avd/sdcard.img.qcow2,l2-cache-size=1048576 -device virtio-blk-pci,drive=sdcard,iothread=disk-iothread,modern-pio-notify -netdev user,id=mynet -device virtio-net-pci,netdev=mynet -netdev user,id=mynet2,net=10.0.3.0/24 -device virtio-net-pci,netdev=mynet2 -show-cursor -L emulator/lib/pc-bios -soundhw hda -vga none -append 'qemu=1 androidboot.hardware=ranchu clocksource=pit android.qemud=1 console=0 console=0 android.checkjni=1 qemu.gles=2 qemu.encrypt=1 cma=32M ndns=2' -android-hw /Users/mac/.android/avd/Nexus_5X_API_23.avd/hardware-qemu.ini
emulator: Starting QEMU main loop
Hax is enabled
Hax ram_size 0x40000000
emulator: registered 'boot-properties' qemud service
emulator: Adding boot property: 'qemu.sf.fake_camera' = 'both'
emulator: Adding boot property: 'ro.opengles.version' = '131072'
emulator: Adding boot property: 'dalvik.vm.heapsize' = '256m'
emulator: Adding boot property: 'qemu.hw.mainkeys' = '0'
emulator: Adding boot property: 'qemu.adb.secure' = '1'
emulator: Adding boot property: 'qemu.sf.lcd_density' = '420'
HAX is working and emulator runs in fast virt mode.
emulator: goldfish_events.have-dpad: false
emulator: goldfish_events.have-trackball: false
emulator: goldfish_events.have-camera: true
emulator: goldfish_events.have-keyboard: true
emulator: goldfish_events.have-lidswitch: false
emulator: goldfish_events.have-touch: false
emulator: goldfish_events.have-multitouch: true
emulator: control console listening on port 5554, ADB on port 5555
Not using any http proxy
emulator: android_hw_fingerprint_init: fingerprint qemud listen service initialized

emulator: onGuestSendCommand: [0x7f80950cdc00] Adb connected, start proxing data

** UPDATE

chiqdi:

emulator: _hwFingerprint_connect: connect finger print listen is called

  emulator: got message from guest system fingerprint HAL

oxirgi 30 daqiqada.

Android "Progress jarayoni boshlandi" deb nomlangan laggy ekranni ko'rsatadi, keyin 30 minut o'tgach sistema UI javob bermayapti va uning ortida disk raskadrovka dialogini o'rnatgan holda muzlatilgan ekran ko'rsatildi. Rasmlarni ko'ring. Tugmani bosganimda, foydalanuvchi interfeysi javob bermaydi va jurnallar e'lon qilgan narsalar tashqari hech narsa yozmaydi.

enter image description here

11
Albatta? Buni bilish yaxshi (bir oz), chunki men bir necha kun mobaynida MAK uchun ishlaydigan yechimni topishga harakat qilyapman. Siz yordam beradigan biror narsa topdingizmi?
qo'shib qo'ydi muallif Jonathan Corrin, manba
Men uni tuzatolmadim. Boshqa bir necha echimlarni sinab ko'rdim va hech narsa qilmadim. Muammoni hal qilmaydigan, lekin u ishlaydigan bluzkalar bo'yicha past API ishlatardim.
qo'shib qo'ydi muallif Jonathan Corrin, manba
Men asosan siz bilan bir xil muammolarga duch kelmoqdaman va men ham Mac-da. Mening emulyatorim Mac-da taxminan bir hafta oldin ishlagan, ammo (hozircha kompyuterda ishlamoqda), shuning uchun men Mac-ning yangilanishiga bog'liq ekaniga aminman.
qo'shib qo'ydi muallif Kebman, manba
Xo'sh, yangilangan va muammo davom etmoqda ...
qo'shib qo'ydi muallif Kebman, manba
Oh, men uni ishga olishim kerak. Javobni yuborish :)
qo'shib qo'ydi muallif Kebman, manba

7 javoblar

Mac uchun Docker sizda biron bir imkoniyat bormi? Men faqat shu masala bilan duch kelib, Dockerni to'xtatib qo'ydim ...

16
qo'shib qo'ydi
Bu men uchun edi!
qo'shib qo'ydi muallif Monkey King, manba
Men qilganim yo'q. Aslida mening Mac-ni yangiladim va endi bu muammo yo'q. U eski noutbukdan kelib chiqdi.
qo'shib qo'ydi muallif Jonathan Corrin, manba
Ha, agar Docker ishlayotgan bo'lsa, u menga yordam bergan!
qo'shib qo'ydi muallif Dombi Soma, manba

Emulyatorni buyruq satridan ishga tushirishga harakat qilishingiz mumkin.

  • cd $ ANDROID_SDK_ROOT
  • vositalari/emulator-list-avds
  • vositalari/emulator @ name_of_avd -verbose

If you see any failures you can share the output of the last command. The ANDROID_SDK_ROOT environment value should point to the android SDK location. You can find this in android studio under the menu tools->sdk manager.

8
qo'shib qo'ydi
Shukur Erwin, men hozir uni buyruq satrida boshlayapman. Men kiritilgan har qanday xatlarni yuboraman.
qo'shib qo'ydi muallif Jonathan Corrin, manba
Men buni hoziroq sinab ko'rdim va bu ham ishlamadi. Eslatma: Ishga kirish uchun emulator oldida ./ ni qo'yish kerak edi, shunga o'xshash: ./ emulator -list-avds Android o'rnatish ekranida hali ham to'xtadi.
qo'shib qo'ydi muallif Kebman, manba

Bu men uchun ishlagan

  1. Delete all AVD's that you currently have.
  2. Go to Preferences >> Android SDK >> SDK Tools
  3. Uninstall Android Emulator
  4. Restart Android Studio.
  5. Re-install Android Emulator from the same place.
  6. Create a new emulator ! Hope this Helps.
1
qo'shib qo'ydi
Bu mening ham yechimim edi
qo'shib qo'ydi muallif Mofe-hendy Ejegi, manba

Mening eski Mac-da (2010-yil o'rtalarida 2,8Ghz i5) menda bir xil muammo bor edi va kelgusida foydalanish uchun echimni jamoa bilan baham ko'rishni istayman:

  1. Uninstall all AVD from list.
  2. Download last version of HAXM https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-mac-os-x
  3. Install it manually (it will uninstall previous version automatically by request)
  4. Generate new AVD for x86 image.
1
qo'shib qo'ydi
Muammoni tuzatdi. Yangi Makintoshni sotib oldim va hatto vaqt mashinasining zaxira nusxasidan qaytgan bo'lsangiz ham, HAXM-ni qayta tiklash kerak bo'ladi. Intel Installerni ochganimda, HAXM-ning allaqachon o'rnatilgani haqida ogohlantirgan edim, lekin har qanday holatda ketdim va mening emulyatorim hayotga qaytdi. Buning uchun rahmat, meni soat/kun saqlab qoldi.
qo'shib qo'ydi muallif Seoras, manba

Men uchun nihoyat nima ishlagan:

Android Studio'da (Mac OS X) AVD menejeri ochiladi. Pastdagi menyuni olish uchun buzilgan Android Virtual Qurilmaga pastga qarab uchburchakni bosing. Keyin O'chirish , katta kuch ishlatish va g'azablangan g'azab bilan .

Buning yordamida + Virtual Devorni Yarating ... -ni bosing. Sozlamalarni standart holatda qoldiring va yangi virtual qurilmangizni mazali burger kabi ishlatasiz.

Umid qilamanki bu siz uchun ham ishlaydi. ^^

0
qo'shib qo'ydi
Foydali emas. Ishlamadim.
qo'shib qo'ydi muallif AKh, manba
Afsuski men uchun bu ishlamadi. Men buni avval sinab ko'rdim va faqat shu natijani olish uchun optimistik tarzda qayta harakat qildim. Bu mening CPU Androids AVD emulyatorini boshqarolmaydi. Men BlueStacksdan faqat yaxshi foydalanishim mumkin, ammo emulator mening Mac-da ishlamaydi. Yordamingiz uchun tashakkur!
qo'shib qo'ydi muallif Jonathan Corrin, manba
Ha, omad tilayman. Agar u hech qanday yordam bermasa, 2012 yil o'rtalarida MacBook Pro 2012 tizza kompyuterida ishlayapman. MacBook Sierra 10.12.3 (bu narsa go'zallik!) Ishlaydigan 16GB RAM bilan 2,5 gigagertsli Intel Core i5. Men sizning 2010-chi, shuning uchun siz to'g'ri bo'lishi mumkin.
qo'shib qo'ydi muallif Kebman, manba

Boshqa oynada, agar asosiy oynani yomg'irda ishga tushirmasdan oldin tushsa: varun aytilganidek, Docker ishlaydigan bir aybdor, va vcpu-ni ishlatadigan boshqa narsa, mening holimda - Virtualbox. Barcha vbox ... jarayonlarini o'ldirishga ishonch hosil qiling.

0
qo'shib qo'ydi

Men uchun, "Graphics" ni "Avtomatik" dan Virtual Qurilma Konfiguratsiyasidagi "Software - GLES 2.0" ga o'zgartirish, menga makros Sierra

0
qo'shib qo'ydi