Git Product home page Git Product logo

Comments (19)

lukaskris avatar lukaskris commented on May 2, 2024 11

I got the error message

Could not launch '/Users/lukaskris/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-aarch64': No such file or
directory

from android-emulator-m1-preview.

abcdsxg avatar abcdsxg commented on May 2, 2024 9

already fixed. just re run darwin-aarch64-replace.sh and everything fine image
thanks

how to do it ?

Download the https://github.com/google/android-emulator-m1-preview/releases/download/0.2/emulator-darwin-aarch64-0.2-engine-only.zip

unzip it

replace emulator and emulator-check to ~/Library/Android/sdk/tools/

now you can run emulator from shell

from android-emulator-m1-preview.

lukaskris avatar lukaskris commented on May 2, 2024 6

already fixed. just re run darwin-aarch64-replace.sh and everything fine
image

thanks

from android-emulator-m1-preview.

sergtimosh avatar sergtimosh commented on May 2, 2024 6

I had 2 emulator binaries, and one was in the ~/Library/Android/sdk/tools/
If the above steps doesn't help you, try to delete tools folder or particularly it's emulator binary.
image

from android-emulator-m1-preview.

Guang1234567 avatar Guang1234567 commented on May 2, 2024 5

I had 2 emulator binaries, and one was in the ~/Library/Android/sdk/tools/ If the above steps doesn't help you, try to delete tools folder or particularly it's emulator binary. image

As memtion of above quote

Just copy emulator and emulator-check from emulator dir to tools dir, then overwrite.

Everything is ok...

@sergtimosh @samstorino @maurice-ellis

from android-emulator-m1-preview.

hannesa2 avatar hannesa2 commented on May 2, 2024 2

If a Google engineer reads this, I can tell it's confusing and error prone !

I found the script here
./Library/Android/sdk/emulator/darwin-aarch64-replace.sh and here
/Applications/Android\ Emulator.app/Contents/MacOS/emulator/darwin-aarch64-replace.sh

When I run it , I see emulator-darwin-aarch64-0.2-engine-only.zip but 0.3 is out, but without this script.
image

At the end I see an error

rm: ./qemu-img: No such file or directory

And now it stops working ...
image

🙈

from android-emulator-m1-preview.

samstorino avatar samstorino commented on May 2, 2024 2

Reinstalling the "Android Emulator" via Tools -> SDK Manager > SDK Tools tab solved the issue for me.

Why? I originally downloaded an old version of Android Studio that wasn't compatible with the M1 macbook. This came with an old incompatible version of the "Android Emulator". I later upgraded to the latest version of Android Studio (Bumblebee) and attempted to run a pre-existing virtual device which showed the above error. I saw in the Help -> Show Log in Finder -> idea.log file that Android Studio was trying to replace the emulator I had installed on disk by running a shell script (darwin-aarch64-replace.sh). but it couldn't find that. This led me to believe the emulator itself was a problem, so I uninstalled then installed it again, triggering Android Studio to download a M1 compatible version.

from android-emulator-m1-preview.

Shaikh-Aabid avatar Shaikh-Aabid commented on May 2, 2024 1

Thank you so much my issue is fixed :)

from android-emulator-m1-preview.

hannesa2 avatar hannesa2 commented on May 2, 2024

Start it from command line, then you will see the reason

from android-emulator-m1-preview.

hannesa2 avatar hannesa2 commented on May 2, 2024

darwin-x86_64

from android-emulator-m1-preview.

lukaskris avatar lukaskris commented on May 2, 2024

Where I can change the config with darwin-aarch64?

from android-emulator-m1-preview.

hannesa2 avatar hannesa2 commented on May 2, 2024

Good news, this is still working
image

from android-emulator-m1-preview.

lukaskris avatar lukaskris commented on May 2, 2024

Yes in the end I had some error
./qemu-img: No such file or directory

but I try moved all file at .zip to the root folder (Library/Android/sdk/emulator/)

and then quit the android studio, try to reopen from AVD and first of all no error message again. and just run my emulator normally like the old macbook.

image

from android-emulator-m1-preview.

morlay avatar morlay commented on May 2, 2024

@lukaskris
same issue when first installed. see #1 (comment)

from android-emulator-m1-preview.

Shaikh-Aabid avatar Shaikh-Aabid commented on May 2, 2024

already fixed. just re run darwin-aarch64-replace.sh and everything fine image

thanks

how to do it ?

from android-emulator-m1-preview.

benomatis avatar benomatis commented on May 2, 2024

Download the https://github.com/google/android-emulator-m1-preview/releases/download/0.2/emulator-darwin-aarch64-0.2-engine-only.zip

unzip it

replace emulator and emulator-check to ~/Library/Android/sdk/tools/

now you can run emulator from shell

What I did differently is that once unzipping the downloaded emulator from that link (which is version 30.9.4), is that I first uninstalled the emulator (I had 31) via SDK Manager > SDK Tools (this effectively removed the emulator folder from ~/Library/Android/sdk/), then renamed the unzipped folder to emulator and moved it inside the ~/Library/Android/sdk/ folder - it is now showing up properly as the installed emulator with version 30.9.4 and I can now start the emulator fine.

from android-emulator-m1-preview.

maurice-ellis avatar maurice-ellis commented on May 2, 2024

@samstorino Thank you, spent all day trying to fix this emulator, uninstalled and reinstalled, now everything works great.

from android-emulator-m1-preview.

Guang1234567 avatar Guang1234567 commented on May 2, 2024

My commandline to launch emlator on macos m1 aarch64

$ which emulator

/Users/xxxx/dev_kit/sdk/android_sdk/tools/emulator


$ emulator -list-avds

Android_TV_1080p_API_31


$emulator -avd Android_TV_1080p_API_31 -netdelay none -netspeed full

INFO    | Android emulator version 31.3.10.0 (build_id 8807927) (CL:N/A)
emulator: INFO: Found systemPath /Users/lihanguang/dev_kit/sdk/android_sdk/system-images/android-31/android-tv/arm64-v8a/
INFO    | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
WARNING | unexpected system image feature string, emulator might not function correctly, please try updating the emulator.
INFO    | Warning: QMetaObject::connectSlotsByName: No matching signal for on_new_posture_requested(int) ((null):0, (null))
# ....
# ....

image

from android-emulator-m1-preview.

geilige avatar geilige commented on May 2, 2024

I failed on the ubuntu 20.04 arm64 system. The error is as follows

root@ubuntu:~/Android/Sdk/emulator# ./darwin-aarch64-replace.sh
curl -L https://github.com/google/android-emulator-m1-preview/releases/download/0.2/emulator-darwin-aarch64-0.2-engine-only.zip -o emulator-darwin-aarch64-0.2.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 91.8M 100 91.8M 0 0 8034k 0 0:00:11 0:00:11 --:--:-- 7943k
unzip emulator-darwin-aarch64-0.2.zip
Archive: emulator-darwin-aarch64-0.2.zip
creating: emulator-darwin-aarch64-0.2/
inflating: emulator-darwin-aarch64-0.2/NOTICE.csv
inflating: emulator-darwin-aarch64-0.2/qsn
inflating: emulator-darwin-aarch64-0.2/qemu-img
creating: emulator-darwin-aarch64-0.2/lib64/
inflating: emulator-darwin-aarch64-0.2/lib64/libemugl_common.dylib
creating: emulator-darwin-aarch64-0.2/lib64/qt/
creating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/
creating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/platforms/
inflating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/platforms/libqcocoa.dylib
creating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/styles/
inflating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/styles/libqmacstyle.dylib
creating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/bearer/
inflating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/bearer/libqgenericbearer.dylib
creating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/iconengines/
inflating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/iconengines/libqsvgicon.dylib
creating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/imageformats/
inflating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/imageformats/libqgif.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/imageformats/libqwbmp.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/imageformats/libqwebp.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/imageformats/libqico.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/imageformats/libqmacheif.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/imageformats/libqjpeg.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/imageformats/libqtiff.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/imageformats/libqsvg.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/imageformats/libqicns.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/imageformats/libqtga.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/qt/plugins/imageformats/libqmacjp2.dylib
creating: emulator-darwin-aarch64-0.2/lib64/qt/lib/
inflating: emulator-darwin-aarch64-0.2/lib64/qt/lib/libQt5CoreAndroidEmu.5.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/qt/lib/libQt5PrintSupportAndroidEmu.5.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/qt/lib/libQt5SvgAndroidEmu.5.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/qt/lib/libQt5WidgetsAndroidEmu.5.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/qt/lib/libQt5DBusAndroidEmu.5.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/qt/lib/libQt5GuiAndroidEmu.5.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/qt/lib/libQt5NetworkAndroidEmu.5.dylib
creating: emulator-darwin-aarch64-0.2/lib64/gles_swiftshader/
inflating: emulator-darwin-aarch64-0.2/lib64/gles_swiftshader/libEGL.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/gles_swiftshader/libGLES_CM.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/gles_swiftshader/libGLESv2.dylib
creating: emulator-darwin-aarch64-0.2/lib64/vulkan/
inflating: emulator-darwin-aarch64-0.2/lib64/vulkan/libMoltenVK.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/vulkan/MoltenVK_icd.json
inflating: emulator-darwin-aarch64-0.2/lib64/libshadertranslator.dylib
inflating: emulator-darwin-aarch64-0.2/lib64/libOpenglRender.dylib
inflating: emulator-darwin-aarch64-0.2/LICENSE
inflating: emulator-darwin-aarch64-0.2/darwin-aarch64-replace.sh
creating: emulator-darwin-aarch64-0.2/resources/
creating: emulator-darwin-aarch64-0.2/resources/macroPreviews/
inflating: emulator-darwin-aarch64-0.2/resources/macroPreviews/Reset_position.mp4
inflating: emulator-darwin-aarch64-0.2/resources/macroPreviews/Walk_to_image_room.mp4
inflating: emulator-darwin-aarch64-0.2/resources/macroPreviews/Track_vertical_plane.mp4
inflating: emulator-darwin-aarch64-0.2/resources/macroPreviews/Track_horizontal_plane.mp4
inflating: emulator-darwin-aarch64-0.2/resources/Toren1BD_Decor.png
inflating: emulator-darwin-aarch64-0.2/resources/poster.png
inflating: emulator-darwin-aarch64-0.2/resources/Toren1BD.mtl
inflating: emulator-darwin-aarch64-0.2/resources/Toren1BD_Main.png
inflating: emulator-darwin-aarch64-0.2/resources/Toren1BD.posters
inflating: emulator-darwin-aarch64-0.2/resources/Toren1BD.obj
creating: emulator-darwin-aarch64-0.2/resources/macros/
inflating: emulator-darwin-aarch64-0.2/resources/macros/Track_vertical_plane
inflating: emulator-darwin-aarch64-0.2/resources/macros/Reset_position
inflating: emulator-darwin-aarch64-0.2/resources/macros/Track_horizontal_plane
inflating: emulator-darwin-aarch64-0.2/resources/macros/Walk_to_image_room
creating: emulator-darwin-aarch64-0.2/bin64/
inflating: emulator-darwin-aarch64-0.2/bin64/fsck.ext4
inflating: emulator-darwin-aarch64-0.2/bin64/mkfs.ext4
inflating: emulator-darwin-aarch64-0.2/bin64/tune2fs
inflating: emulator-darwin-aarch64-0.2/bin64/resize2fs
inflating: emulator-darwin-aarch64-0.2/bin64/e2fsck
inflating: emulator-darwin-aarch64-0.2/source.properties
inflating: emulator-darwin-aarch64-0.2/emulator-check
inflating: emulator-darwin-aarch64-0.2/NOTICE.txt
inflating: emulator-darwin-aarch64-0.2/android-info.txt
inflating: emulator-darwin-aarch64-0.2/perfetto-protozero-protoc-plugin
creating: emulator-darwin-aarch64-0.2/qemu/
creating: emulator-darwin-aarch64-0.2/qemu/darwin-aarch64/
inflating: emulator-darwin-aarch64-0.2/qemu/darwin-aarch64/qemu-system-aarch64
inflating: emulator-darwin-aarch64-0.2/qemu/darwin-aarch64/qemu-system-aarch64-headless
inflating: emulator-darwin-aarch64-0.2/mksdcard
creating: emulator-darwin-aarch64-0.2/lib/
inflating: emulator-darwin-aarch64-0.2/lib/waterfall.proto
inflating: emulator-darwin-aarch64-0.2/lib/emulator_controller.proto
inflating: emulator-darwin-aarch64-0.2/lib/advancedFeaturesCanary.ini
inflating: emulator-darwin-aarch64-0.2/lib/hardware-properties.ini
inflating: emulator-darwin-aarch64-0.2/lib/advancedFeatures.ini
inflating: emulator-darwin-aarch64-0.2/lib/hostapd.conf
creating: emulator-darwin-aarch64-0.2/lib/pc-bios/
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/efi-e1000.rom
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/kvmvapic.bin
creating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/sl
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/pl
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/modifiers
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/sv
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/da
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/no
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/Makefile
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/ja
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/lv
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/it
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/is
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/cz
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/ru
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/en-gb
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/bepo
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/common
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/pt
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/fr-ch
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/fr-ca
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/mk
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/ar
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/hr
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/pt-br
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/hu
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/nl
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/de
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/fi
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/fr
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/es
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/et
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/lt
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/fo
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/en-us
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/de-ch
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/th
extracting: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/nl-be
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/fr-be
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/keymaps/tr
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/multiboot.bin
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/vgabios-stdvga.bin
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/bios.bin
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/vgabios-virtio.bin
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/bios-256k.bin
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/linuxboot_dma.bin
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/linuxboot.bin
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/efi-virtio.rom
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/efi-e1000e.rom
inflating: emulator-darwin-aarch64-0.2/lib/pc-bios/vgabios-cirrus.bin
inflating: emulator-darwin-aarch64-0.2/lib/snapshot_service.proto
inflating: emulator-darwin-aarch64-0.2/lib/emu-original-feature-flags.protobuf
inflating: emulator-darwin-aarch64-0.2/lib/snapshot.proto
inflating: emulator-darwin-aarch64-0.2/lib/ca-bundle.pem
inflating: emulator-darwin-aarch64-0.2/lib/ui_controller_service.proto
inflating: emulator-darwin-aarch64-0.2/emulator
rm: 无法删除 './qsn': 没有那个文件或目录

from android-emulator-m1-preview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.