android-emulator-m1-preview icon indicating copy to clipboard operation
android-emulator-m1-preview copied to clipboard

No Google Play Store

Open jaimin-webbrains opened this issue 4 years ago β€’ 38 comments

There is no google play store, so we cannot test for google maps etc.

How to install play store in emulator.

jaimin-webbrains avatar Dec 10 '20 04:12 jaimin-webbrains

Hi, we're working on providing the Play Store; we'll release an image here and through the Android SDK when it's ready.

741g avatar Dec 10 '20 07:12 741g

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.

741g avatar Dec 17 '20 02:12 741g

Do you have a timeline available for the playstore release?

kevin-Price avatar Jan 07 '21 04:01 kevin-Price

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?!

msivers avatar Feb 04 '21 11:02 msivers

The Play Store version should already be available through Android Studio (Android R arm64 v8a Google Play).

741g avatar Feb 04 '21 16:02 741g

@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?

mushroomgenie avatar Feb 10 '21 10:02 mushroomgenie

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 avatar Feb 15 '21 10:02 msivers

@msivers I had the same issue, but when I disabled Chrome I could proceed Facebook Login with the other build in test browser.

hiroshihorie avatar Feb 15 '21 13:02 hiroshihorie

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?

madhall avatar Mar 22 '21 15:03 madhall

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 ?

wy555 avatar Apr 03 '21 01:04 wy555

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 ?

wy555 avatar Apr 03 '21 01:04 wy555

@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 avatar Apr 03 '21 01:04 wy555

@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.

maxfloden avatar Apr 04 '21 07:04 maxfloden

@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.

Screenshot 2021-04-06 at 08 12 19 Screenshot 2021-04-06 at 08 17 00

russelRajitha avatar Apr 06 '21 02:04 russelRajitha

@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.

Screenshot 2021-04-06 at 1 22 36 PM

did the same as you mentioned, but couldn't run the emulator on the android studio(4.1.3).

CodeChamp-SS avatar Apr 06 '21 07:04 CodeChamp-SS

@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.

ska2519 avatar Apr 07 '21 04:04 ska2519

@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 πŸ‘

ska2519 avatar Apr 07 '21 04:04 ska2519

@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 avatar Apr 07 '21 04:04 CodeChamp-SS

@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 πŸ˜‚

ska2519 avatar Apr 07 '21 04:04 ska2519

@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

image

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 avatar Apr 13 '21 02:04 morlay

@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 ❀️❀️❀️

russelRajitha avatar Apr 13 '21 02:04 russelRajitha

@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

morlay avatar Apr 13 '21 03:04 morlay

@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

image

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 avatar Apr 13 '21 03:04 CodeChamp-SS

@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/* . 

morlay avatar Apr 13 '21 03:04 morlay

This is the terminal output after running the last command.

Screenshot 2021-04-13 at 8 49 17 AM

Is it fine? Or am I doing something wrong? avd still shows the same error

CodeChamp-SS avatar Apr 13 '21 03:04 CodeChamp-SS

@CodeChamp-SS cp -r emulator-darwin-aarch64-0.2/* . the dot for current dir

morlay avatar Apr 13 '21 03:04 morlay

@CodeChamp-SS cp -r emulator-darwin-aarch64-0.2/* . the dot for current dir

I tried this but it says, no matches found

CodeChamp-SS avatar Apr 13 '21 03:04 CodeChamp-SS

@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

morlay avatar Apr 13 '21 03:04 morlay

@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

CodeChamp-SS avatar Apr 13 '21 03:04 CodeChamp-SS

@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. image

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. ☹️

CodeChamp-SS avatar May 13 '21 15:05 CodeChamp-SS