LoginSignup
48
59

More than 5 years have passed since last update.

Genymotion Android 6.0 に Play Store をインストールして Google Map を利用する

Posted at

Overview

Genymotion Android 6.0 に Play Store をインストールして、Google Map 等を
利用したアプリをデバッグしたい方向けです。
Qiita 内を検索しても見つからなかったので wbroek/genymotionwithplay.txt から手順を転記しています。
Genymotion インストール済みで30分くらいで作業完了できます。

Environment

name version
OS OS X(10.11.4)
Genymotion 2.6.0
AndroidStudio 2.1.1
Google Nexus 5 API 23(6.0.0)

Step

  1. 利用する virtual device のダウンロード
  2. 必要なファイルをダウンロード
  3. flash Genymotion-ARM-Translation_v1.1
  4. flash Google Apps for Android 5.1
  5. Play Store にログイン
  6. flash Google Apps for Android 6.0
  7. Google Map のインストール
  8. Google Map を利用しているアプリをインストール
  9. 最後に

1. 利用する virtual device のダウンロード

試したのは Google Nexus 5 API 23(6.0.0) です。
Screen Shot 2016-05-15 at 3.42.28 AM.png

2. 必要なファイルをダウンロード

以下の3ファイルが必要なファイルとなります。
wbroek/genymotionwithplay.txt にもまとまっています。
1. Genymotion-ARM-Translation_v1.1.zip (お決まりのやつ)
2. Google Apps for Android 5.1 (Play Store にログインするために使います)
3. Google Apps for Android 6.0

3. flash Genymotion-ARM-Translation_v1.1

ダウンロードした Genymotion-ARM-Translation_v1.1.zip を起動している Google Nexus 5 のウィンドウにドラッグアンドドロップします。
Screen Shot 2016-05-15 at 3.39.35 AM.png
こんなダイアログがでますので、「OK」を押します。
Screen Shot 2016-05-15 at 3.40.33 AM.png
virtual device の再起動が必要なので再起動します。

4. flash Google Apps for Android 5.1

Google Apps for Android 6.0 をそのまま入れると Play Store がクラッシュしてしまうので(ログイン機能周りのバグ?)、Google Apps for Android 5.1 を先に入れて Play Store にログインします。順序を逆にするとうまくいかないです。(Google Apps for Android 6.0 -> Google Apps for Android 5.1)
ダウンロードした Google Apps for Android 5.1 を起動している Google Nexus 5 のウィンドウにドラッグアンドドロップします。ファイルサイズが100MB近くあるのでzip解凍に数分必要です。
Screen Shot 2016-05-15 at 3.46.32 AM.png
スクリーンショットでは、android_5.0.1_ のプレフィックスが付いていますが、同じファイルです。見分けがつかないのでリネームしてます。
数十秒でインストールが終わります。
Screen Shot 2016-05-15 at 3.48.26 AM.png
virtual device の再起動が必要なので再起動します。

5. Play Store にログイン

Screen Shot 2016-05-15 at 3.50.38 AM.png
起動に少し時間がかかります。
Screen Shot 2016-05-15 at 3.51.47 AM.png
こんなダイアログが出ますが無視します。
Screen Shot 2016-05-15 at 3.52.34 AM.png
Play Store を選択します。
自分のアカウントでログインします。
Screen Shot 2016-05-15 at 3.53.26 AM.png
この間にも、エラーでますが無視して進めます。
Screen Shot 2016-05-15 at 3.54.54 AM.png
久しぶりにバジリスクが観たくなりますね。
Screen Shot 2016-05-15 at 3.55.45 AM.png

6. flash Google Apps for Android 6.0

Play Store へのログインが済んだら、ホーム画面へ戻ります。
ダウンロードした Google Apps for Android 6.0 を起動している Google Nexus 5 のウィンドウにドラッグアンドドロップします。ファイルサイズが100MB近くあるのでzip解凍に数分必要です。
あとは flash Google Apps for Android 5.1 の手順と同じです。
Screen Shot 2016-05-15 at 3.59.44 AM.png
Screen Shot 2016-05-15 at 4.00.59 AM.png
virtual device の再起動が必要なので再起動します。

7. Google Map のインストール

Screen Shot 2016-05-15 at 4.03.23 AM.png
起動に少し時間がかかります。
Screen Shot 2016-05-15 at 4.08.12 AM.png
Google Map をインストールします。
Screen Shot 2016-05-15 at 4.10.06 AM.png
無事開けました。

8. Google Map を利用しているアプリをインストール

デバッグしたいアプリをいつものようにインストールします。
Screen Shot 2016-05-15 at 4.16.46 AM.png
Android 6.0 から追加された Runtime Permission が出ました!(これは自分で追加したやつ)
Screen Shot 2016-05-15 at 4.18.25 AM.png
無事開けました。
Google Map をインストールしなくても、Play Service が必要なアプリをインストールした際には Play Service の Update が促されます。Update したら問題なく Google Map を利用したアプリがデバッグできます。

9. 最後に

Android 6.0 で追加された機能は多いので、動作の早い Genymotion でデバッグしていきたいですね。(最初 Genymotion に Play Store が入らなくて、Default Emulator でデバッグしてましたが、コーヒーを飲む時間がだいぶ長くなって健康に悪かったです)

48
59
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
48
59