Open jaimin-webbrains opened 3 years ago
Hi, we're working on providing the Play Store; we'll release an image here and through the Android SDK when it's ready.
If you want to test for google maps API, you can use the preview v3 which has Google APIs: https://github.com/google/android-emulator-m1-preview/releases/tag/0.3
The system image is also available in the SDK Manager preview channel.
Do you have a timeline available for the playstore release?
How close are we for having Play Store? ... I have a nice new Mac but can't develop my app on it as no emulator that works (requires Play Store support). An ETA would be extremely helpful?!
The Play Store version should already be available through Android Studio (Android R arm64 v8a Google Play).
@741g Android R arm64 v8a Google Play isn't supported by the new M1 Macs, I am unable to select that as a System Image. I am trying to develop an app that uses SMS data, but I am getting error message saying "Google Play Services not available". Is there going to be a release with Google Play soon?
The Play Store version should already be available through Android Studio (Android R arm64 v8a Google Play).
It's great that this is working via Android Studio (4.1.2) release which indeed includes Android R arm64 v8a with Google Play (Emulator version 30.3.5-7036990) - however, Chrome does not work and you can't navigate to any web pages which includes any authentication views that require web view. Is there an ETA for Chrome working?!
@msivers I had the same issue, but when I disabled Chrome I could proceed Facebook Login with the other build in test browser.
Hi,
I tried installing the emulator manually by installing the latest version for M1 devices but it has nio google play services! And when I am trying to install via "Other Images" it allows me to create a virtual device but says no Emulators available... any thoughts on how to get the Emulator with Google Play working on M1 Macs?
Hi,
I tried installing the emulator manually by installing the latest version for M1 devices but it has nio google play services! And when I am trying to install via "Other Images" it allows me to create a virtual device but says no Emulators available... any thoughts on how to get the Emulator with Google Play working on M1 Macs?
I have the same question too. No Google Play services even with the latest Android Emulator Preview for M1 version 3. Is there a way to install the Google Play services manually ?
The Play Store version should already be available through Android Studio (Android R arm64 v8a Google Play).
It's great that this is working via Android Studio (4.1.2) release which indeed includes Android R arm64 v8a with Google Play (Emulator version 30.3.5-7036990) - however, Chrome does not work and you can't navigate to any web pages which includes any authentication views that require web view. Is there an ETA for Chrome working?!
You were saying you manage to get the Google Play to work on your Android Emulator for M1 (Silicon ARM64) by installing Android Studio 4.1.2 ? So the Android Studio 4.1.2 contains the Android Emulator for M1 with the Google Play services ?
@741g Android R arm64 v8a Google Play isn't supported by the new M1 Macs, I am unable to select that as a System Image. I am trying to develop an app that uses SMS data, but I am getting error message saying "Google Play Services not available". Is there going to be a release with Google Play soon?
I have the same question too. Hoping there is a Android Emulator for M1 with the Google Play. Or is there a workaround to install the google play on Android Emulator for M1 Preview version 3 ?
@wy555 So the Android Studio 4.1.2 contains the Android Emulator for M1 with the Google Play services ?
Just tested on latest version 4.1.3 and it does include M1 Emulator with Google Play. Thanks to this thread I realized I no longer have to run this GitHub beta but that the M1 Emulator is now actually included in Android Studio. I would suggest the readme for this repo is updated to reflect this.
To install from Android Studion I did this: Tools - AVD Manager - Create Virtual Device - Pixel4 (with Google Play) - Select System Image / Other Images / Release S with ABI arm64-v8a I hope this helps someone.
@wy555 So the Android Studio 4.1.2 contains the Android Emulator for M1 with the Google Play services ?
Just tested on latest version 4.1.3 and it does include M1 Emulator with Google Play. Thanks to this thread I realized I no longer have to run this GitHub beta but that the M1 Emulator is now actually included in Android Studio. I would suggest the readme for this repo is updated to reflect this.
To install from Android Studion I did this: Tools - AVD Manager - Create Virtual Device - Pixel4 (with Google Play) - Select System Image / Other Images / Release S with ABI arm64-v8a I hope this helps someone.
I tried this. and it does not works. I have installed android studio 4.1.3.
@wy555 So the Android Studio 4.1.2 contains the Android Emulator for M1 with the Google Play services ?
Just tested on latest version 4.1.3 and it does include M1 Emulator with Google Play. Thanks to this thread I realized I no longer have to run this GitHub beta but that the M1 Emulator is now actually included in Android Studio. I would suggest the readme for this repo is updated to reflect this.
To install from Android Studion I did this: Tools - AVD Manager - Create Virtual Device - Pixel4 (with Google Play) - Select System Image / Other Images / Release S with ABI arm64-v8a I hope this helps someone.
did the same as you mentioned, but couldn't run the emulator on the android studio(4.1.3).
@CodeChamp-SS When I turned on the first time, a pop-up like you appeared and failed, and on the second run, the emulator turned on after agreeing to Apple pop-up window.
@wy555 So the Android Studio 4.1.2 contains the Android Emulator for M1 with the Google Play services ?
Just tested on latest version 4.1.3 and it does include M1 Emulator with Google Play. Thanks to this thread I realized I no longer have to run this GitHub beta but that the M1 Emulator is now actually included in Android Studio. I would suggest the readme for this repo is updated to reflect this.
To install from Android Studion I did this: Tools - AVD Manager - Create Virtual Device - Pixel4 (with Google Play) - Select System Image / Other Images / Release S with ABI arm64-v8a I hope this helps someone.
first run failed, and on the second run, the emulator turned on after agreeing to Apple pop-up window 👍
@CodeChamp-SS When I turned on the first time, a pop-up like you appeared and failed, and on the second run, the emulator turned on after agreeing to Apple pop-up window.
I tried running it multiple times but it showed the same error 😅.
@CodeChamp-SS When I turned on the first time, a pop-up like you appeared and failed, and on the second run, the emulator turned on after agreeing to Apple pop-up window.
I tried running it multiple times but it showed the same error 😅.
sorry about that 😂
@CodeChamp-SS @russelRajitha
it may a emulator path issue, i created a symlink to fix it
ln -s ~/Library/Android/sdk/emulator/emulator-darwin-aarch64-0.2/emulator ~/Library/Android/sdk/emulator/emulator
emulator dir:
$ ~/Library/Android/sdk/emulator ll
-rw-r--r-- 1 morlay staff 32K Apr 13 08:04 NOTICE.csv
-rw-r--r-- 1 morlay staff 135K Apr 13 08:04 NOTICE.txt
-rw-r--r-- 1 morlay staff 250B Apr 13 08:04 android-info.txt
drwxr-xr-x 2 morlay staff 64B Apr 13 09:56 bin64
-rwxr-xr-x 1 morlay staff 12K Apr 13 08:04 darwin-aarch64-replace.sh
lrwxr-xr-x 1 morlay staff 36B Apr 13 10:14 emulator -> emulator-darwin-aarch64-0.2/emulator
drwxr-xr-x 19 morlay staff 608B Dec 17 03:56 emulator-darwin-aarch64-0.2
-rw-r--r-- 1 morlay staff 92M Apr 13 09:56 emulator-darwin-aarch64-0.2.zip
drwxr-xr-x 3 morlay staff 96B Apr 13 09:56 lib
drwxr-xr-x 5 morlay staff 160B Apr 13 09:56 lib64
-rwxr-xr-x 1 morlay staff 34K Apr 13 08:04 mksdcard
-rw-r--r-- 1 morlay staff 17K Apr 13 08:05 package.xml
drwxr-xr-x 3 morlay staff 96B Apr 13 08:05 qemu
drwxr-xr-x 4 morlay staff 128B Apr 13 09:56 resources
-rw-r--r-- 1 morlay staff 101B Apr 13 08:04 source.properties
I manual run sh ./darwin-aarch64-replace.sh
break on rm: ./qsn: No such file or directory
, seems something not correct in ./darwin-aarch64-replace.sh
final
cd ~/Library/Android/sdk/emulator
# cleanup all
rm -rf ./lib*
rm -rf ./qemu*
rm -rf ./resources
cp -r emulator-darwin-aarch64-0.2/* .
-rw-r--r-- 1 morlay staff 524B Apr 13 10:46 LICENSE
-rw-r--r-- 1 morlay staff 15K Apr 13 10:46 NOTICE.csv
-rw-r--r-- 1 morlay staff 116K Apr 13 10:46 NOTICE.txt
-rw-r--r-- 1 morlay staff 250B Apr 13 10:46 android-info.txt
drwxr-xr-x 7 morlay staff 224B Apr 13 10:43 bin64
-rwxr-xr-x 1 morlay staff 12K Apr 13 10:46 darwin-aarch64-replace.sh
-rwxr-xr-x 1 morlay staff 14M Apr 13 10:46 emulator
-rwxr-xr-x 1 morlay staff 14M Apr 13 10:46 emulator-check
drwxr-xr-x 19 morlay staff 608B Dec 17 03:56 emulator-darwin-aarch64-0.2
-rw-r--r-- 1 morlay staff 92M Apr 13 10:40 emulator-darwin-aarch64-0.2.zip
drwxr-xr-x 14 morlay staff 448B Apr 13 10:46 lib
drwxr-xr-x 8 morlay staff 256B Apr 13 10:46 lib64
-rwxr-xr-x 1 morlay staff 68K Apr 13 10:46 mksdcard
-rw-r--r-- 1 morlay staff 17K Apr 13 08:05 package.xml
-rwxr-xr-x 1 morlay staff 2.0M Apr 13 10:46 perfetto-protozero-protoc-plugin
drwxr-xr-x 3 morlay staff 96B Apr 13 10:46 qemu
-rwxr-xr-x 1 morlay staff 3.2M Apr 13 10:46 qemu-img
-rwxr-xr-x 1 morlay staff 14M Apr 13 10:46 qsn
drwxr-xr-x 10 morlay staff 320B Apr 13 10:46 resources
-rw-r--r-- 1 morlay staff 101B Apr 13 10:46 source.properties
@CodeChamp-SS @russelRajitha
it may a emulator path issue, i created a symlink to fix it
ln -s ~/Library/Android/sdk/emulator/emulator-darwin-aarch64-0.2/emulator ~/Library/Android/sdk/emulator/emulator
emulator dir:
$ ~/Library/Android/sdk/emulator ll -rw-r--r-- 1 morlay staff 32K Apr 13 08:04 NOTICE.csv -rw-r--r-- 1 morlay staff 135K Apr 13 08:04 NOTICE.txt -rw-r--r-- 1 morlay staff 250B Apr 13 08:04 android-info.txt drwxr-xr-x 2 morlay staff 64B Apr 13 09:56 bin64 -rwxr-xr-x 1 morlay staff 12K Apr 13 08:04 darwin-aarch64-replace.sh lrwxr-xr-x 1 morlay staff 36B Apr 13 10:14 emulator -> emulator-darwin-aarch64-0.2/emulator drwxr-xr-x 19 morlay staff 608B Dec 17 03:56 emulator-darwin-aarch64-0.2 -rw-r--r-- 1 morlay staff 92M Apr 13 09:56 emulator-darwin-aarch64-0.2.zip drwxr-xr-x 3 morlay staff 96B Apr 13 09:56 lib drwxr-xr-x 5 morlay staff 160B Apr 13 09:56 lib64 -rwxr-xr-x 1 morlay staff 34K Apr 13 08:04 mksdcard -rw-r--r-- 1 morlay staff 17K Apr 13 08:05 package.xml drwxr-xr-x 3 morlay staff 96B Apr 13 08:05 qemu drwxr-xr-x 4 morlay staff 128B Apr 13 09:56 resources -rw-r--r-- 1 morlay staff 101B Apr 13 08:04 source.properties
I manual run
sh ./darwin-aarch64-replace.sh
break on
rm: ./qsn: No such file or directory
, seems something not correct in./darwin-aarch64-replace.sh
final
cd ~/Library/Android/sdk/emulator # cleanup all rm -rf ./lib* rm -rf ./qemu* rm -rf ./resources cp -r emulator-darwin-aarch64-0.2/* .
-rw-r--r-- 1 morlay staff 524B Apr 13 10:46 LICENSE -rw-r--r-- 1 morlay staff 15K Apr 13 10:46 NOTICE.csv -rw-r--r-- 1 morlay staff 116K Apr 13 10:46 NOTICE.txt -rw-r--r-- 1 morlay staff 250B Apr 13 10:46 android-info.txt drwxr-xr-x 7 morlay staff 224B Apr 13 10:43 bin64 -rwxr-xr-x 1 morlay staff 12K Apr 13 10:46 darwin-aarch64-replace.sh -rwxr-xr-x 1 morlay staff 14M Apr 13 10:46 emulator -rwxr-xr-x 1 morlay staff 14M Apr 13 10:46 emulator-check drwxr-xr-x 19 morlay staff 608B Dec 17 03:56 emulator-darwin-aarch64-0.2 -rw-r--r-- 1 morlay staff 92M Apr 13 10:40 emulator-darwin-aarch64-0.2.zip drwxr-xr-x 14 morlay staff 448B Apr 13 10:46 lib drwxr-xr-x 8 morlay staff 256B Apr 13 10:46 lib64 -rwxr-xr-x 1 morlay staff 68K Apr 13 10:46 mksdcard -rw-r--r-- 1 morlay staff 17K Apr 13 08:05 package.xml -rwxr-xr-x 1 morlay staff 2.0M Apr 13 10:46 perfetto-protozero-protoc-plugin drwxr-xr-x 3 morlay staff 96B Apr 13 10:46 qemu -rwxr-xr-x 1 morlay staff 3.2M Apr 13 10:46 qemu-img -rwxr-xr-x 1 morlay staff 14M Apr 13 10:46 qsn drwxr-xr-x 10 morlay staff 320B Apr 13 10:46 resources -rw-r--r-- 1 morlay staff 101B Apr 13 10:46 source.properties
@morlay You are my angel of hope ❤️❤️❤️
@741g
could you help to upgrade the ./darwin-aarch64-replace.sh
? to make first installing happy
i haven't find where the source code is.
https://github.com/google/android-emulator-m1-preview/issues/1#issuecomment-818398763
@CodeChamp-SS @russelRajitha
it may a emulator path issue, i created a symlink to fix it
ln -s ~/Library/Android/sdk/emulator/emulator-darwin-aarch64-0.2/emulator ~/Library/Android/sdk/emulator/emulator
emulator dir:
$ ~/Library/Android/sdk/emulator ll -rw-r--r-- 1 morlay staff 32K Apr 13 08:04 NOTICE.csv -rw-r--r-- 1 morlay staff 135K Apr 13 08:04 NOTICE.txt -rw-r--r-- 1 morlay staff 250B Apr 13 08:04 android-info.txt drwxr-xr-x 2 morlay staff 64B Apr 13 09:56 bin64 -rwxr-xr-x 1 morlay staff 12K Apr 13 08:04 darwin-aarch64-replace.sh lrwxr-xr-x 1 morlay staff 36B Apr 13 10:14 emulator -> emulator-darwin-aarch64-0.2/emulator drwxr-xr-x 19 morlay staff 608B Dec 17 03:56 emulator-darwin-aarch64-0.2 -rw-r--r-- 1 morlay staff 92M Apr 13 09:56 emulator-darwin-aarch64-0.2.zip drwxr-xr-x 3 morlay staff 96B Apr 13 09:56 lib drwxr-xr-x 5 morlay staff 160B Apr 13 09:56 lib64 -rwxr-xr-x 1 morlay staff 34K Apr 13 08:04 mksdcard -rw-r--r-- 1 morlay staff 17K Apr 13 08:05 package.xml drwxr-xr-x 3 morlay staff 96B Apr 13 08:05 qemu drwxr-xr-x 4 morlay staff 128B Apr 13 09:56 resources -rw-r--r-- 1 morlay staff 101B Apr 13 08:04 source.properties
I manual run
sh ./darwin-aarch64-replace.sh
break on
rm: ./qsn: No such file or directory
, seems something not correct in./darwin-aarch64-replace.sh
final
cd ~/Library/Android/sdk/emulator # cleanup all rm -rf ./lib* rm -rf ./qemu* rm -rf ./resources cp -r emulator-darwin-aarch64-0.2/* .
-rw-r--r-- 1 morlay staff 524B Apr 13 10:46 LICENSE -rw-r--r-- 1 morlay staff 15K Apr 13 10:46 NOTICE.csv -rw-r--r-- 1 morlay staff 116K Apr 13 10:46 NOTICE.txt -rw-r--r-- 1 morlay staff 250B Apr 13 10:46 android-info.txt drwxr-xr-x 7 morlay staff 224B Apr 13 10:43 bin64 -rwxr-xr-x 1 morlay staff 12K Apr 13 10:46 darwin-aarch64-replace.sh -rwxr-xr-x 1 morlay staff 14M Apr 13 10:46 emulator -rwxr-xr-x 1 morlay staff 14M Apr 13 10:46 emulator-check drwxr-xr-x 19 morlay staff 608B Dec 17 03:56 emulator-darwin-aarch64-0.2 -rw-r--r-- 1 morlay staff 92M Apr 13 10:40 emulator-darwin-aarch64-0.2.zip drwxr-xr-x 14 morlay staff 448B Apr 13 10:46 lib drwxr-xr-x 8 morlay staff 256B Apr 13 10:46 lib64 -rwxr-xr-x 1 morlay staff 68K Apr 13 10:46 mksdcard -rw-r--r-- 1 morlay staff 17K Apr 13 08:05 package.xml -rwxr-xr-x 1 morlay staff 2.0M Apr 13 10:46 perfetto-protozero-protoc-plugin drwxr-xr-x 3 morlay staff 96B Apr 13 10:46 qemu -rwxr-xr-x 1 morlay staff 3.2M Apr 13 10:46 qemu-img -rwxr-xr-x 1 morlay staff 14M Apr 13 10:46 qsn drwxr-xr-x 10 morlay staff 320B Apr 13 10:46 resources -rw-r--r-- 1 morlay staff 101B Apr 13 10:46 source.properties
I didn't get it😅, what exactly do I have to do?
@CodeChamp-SS
./darwin-aarch64-replace.sh
now will not correctly run when first installed.
just need to run, and restart your created adv
# path to sdk emulator
cd ~/Library/Android/sdk/emulator
# cleanup all, should cover neccessary files in ./darwin-aarch64-replace.sh
rm -rf ./lib*
rm -rf ./qemu*
rm -rf ./resources
rm -rf ./bin64
rm -rf ./qsn
# copy emulator files for darwin aarch64
cp -r emulator-darwin-aarch64-0.2/* .
This is the terminal output after running the last command.
Is it fine? Or am I doing something wrong? avd still shows the same error
@CodeChamp-SS cp -r emulator-darwin-aarch64-0.2/* .
the dot for current dir
@CodeChamp-SS
cp -r emulator-darwin-aarch64-0.2/* .
the dot for current dirI tried this but it says, no matches found
@CodeChamp-SS
not sure which version you installed.
try manual download
# copy from `darwin-aarch64-replace.sh`
export EMULATOR_DOWNLOAD_BASE_NAME=emulator-darwin-aarch64-0.2
rm -rf ${EMULATOR_DOWNLOAD_BASE_NAME}
curl -L "https://github.com/google/android-emulator-m1-preview/releases/download/0.2/${EMULATOR_DOWNLOAD_BASE_NAME}-engine-only.zip" -o ${EMULATOR_DOWNLOAD_BASE_NAME}.zip
unzip ${EMULATOR_DOWNLOAD_BASE_NAME}.zip
@CodeChamp-SS
copy from
darwin-aarch64-replace.sh
export EMULATOR_DOWNLOAD_BASE_NAME="emulator-darwin-aarch64-0.2" rm -rf ${EMULATOR_DOWNLOAD_BASE_NAME} echo "curl -L https://github.com/google/android-emulator-m1-preview/releases/download/0.2/${EMULATOR_DOWNLOAD_BASE_NAME}-engine-only.zip -o ${EMULATOR_DOWNLOAD_BASE_NAME}.zip" curl -L https://github.com/google/android-emulator-m1-preview/releases/download/0.2/${EMULATOR_DOWNLOAD_BASE_NAME}-engine-only.zip -o ${EMULATOR_DOWNLOAD_BASE_NAME}.zip && \ echo "unzip ${EMULATOR_DOWNLOAD_BASE_NAME}.zip" && \ unzip ${EMULATOR_DOWNLOAD_BASE_NAME}.zip
It works now, the emulator is running now 😍.Thanks a lot for the help
@morlay I've recently started facing another problem with the emulator, it shows the same error every time I try to run an app on the emulator, though the emulator starts and runs properly. Is there any chance you can help me out with this too? Thanks in advance.
I tried deleting the *lock files too, that too many times, but it didn't help at all, I even tried uninstalling android studio completely and reinstalling it, but that too went in vain. ☹️
Hey, I tried the same steps and able to run Emulator but device status is Unreachable which is causing app crash and can't run app over Emulator. Any suggestion?
On Apple M1 Mac mini
Android Studio Arctic Fox | 2020.3.1 Beta 3 Build #AI-203.7717.56.2031.7395685, built on May 25, 2021 Runtime version: 11.0.10+0-b96-7249189 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 11.3.1 GC: G1 Young Generation, G1 Old Generation Memory: 1280M Cores: 8 Registry: external.system.auto.import.disabled=true
When I create a VM or edit on.
I got a popup message to see idea.log
idea.log
Error: Failed to create the SD card.
Error: Failed to create the sdcard in the AVD folder.
Quick fix here:
I created a new emulator on Pixel 4 (with Google Play) and on advanced settings: change the SD Card space from 512MB to 1024MB on Studio-managed
Voilà!
@wy555 So the Android Studio 4.1.2 contains the Android Emulator for M1 with the Google Play services ?
Just tested on latest version 4.1.3 and it does include M1 Emulator with Google Play. Thanks to this thread I realized I no longer have to run this GitHub beta but that the M1 Emulator is now actually included in Android Studio. I would suggest the readme for this repo is updated to reflect this.
To install from Android Studion I did this: Tools - AVD Manager - Create Virtual Device - Pixel4 (with Google Play) - Select System Image / Other Images / Release S with ABI arm64-v8a I hope this helps someone.
Internet not working with this...any help
I also don't have internet connection. I think it's because of the recent MacOS update.
If you know the solution, please share it!
I also don't have internet connection. I think it's because of the recent MacOS update.
If you know the solution, please share it!
I solved this problem. All it takes is to install an Android studio for m1, and an ARM-only system image.
You can install Android Studios for m1 on this link. https://developer.android.com/studio/archive
However, be aware of the use as this is a preview version.
Great, thank you all. I followed the instructions to install the Pixel 4 Arm simulator with Google Play and now Chrome is not crashing anymore.
The Emulator in Android Studio (m1 Artic Beta 5) could not run some Unity apps such as "Pokemon Go" and "Cookie Run: Kingdom", it stucks when launching the App and then the whole Emulator hangs, I have tried API 30/31 arm64-v8a Google Play/APIs Android 11/12, no luck for all.
However it runs smoothly with this android-emulator-m1-preview. It would be perfect if you can add Google Play and Google Play Games in this image.
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.
There is no google play store, so we cannot test for google maps etc.
How to install play store in emulator.