如何在Genymotion虛擬設備上安裝Google框架(Play,Accounts等)? [重複]

本文翻譯自:How do you install Google frameworks (Play, Accounts, etc.) on a Genymotion virtual device? [duplicate]

I'm currently trying out Genymotion and boy, it's so much faster than the ADT emulator. 我目前正在嘗試Genymotion和男孩,它比ADT模擬器快得多。

But I need to install Google Play to download some apps into it. 但我需要安裝Google Play才能將一些應用下載到其中。 How do I do this? 我該怎麼做呢?


#1樓

參考:https://stackoom.com/question/1Couk/如何在Genymotion虛擬設備上安裝Google框架-Play-Accounts等-重複


#2樓

EDIT 2 編輯2

After three months we can say: no more official Google Apps in Genymotion and CyanogenMod -like method is only way to get Google Apps. 三個月後,我們可以說:Genymotion和CyanogenMod方法中的官方Google Apps不再是獲取Google Apps的唯一途徑。 However, you can still use the previous project of the Genymotion team: AndroVM ( download mirror ). 但是,您仍然可以使用Genymotion團隊的先前項目: AndroVM下載鏡像 )。


EDIT 編輯

Google apps will be removed from Genymotion in November. Google應用程序將於11月從Genymotion中刪除。 You can find more information on the Genymotion Google Plus page. 您可以在Genymotion Google Plus頁面上找到更多信息。


Choose virtual device with Google Apps: 選擇使用Google Apps的虛擬設備:

Done: 完成:


#3樓

Since the previous answer no longer applies for new devices created with Genymotion 2.0, here is a new solution. 由於上一個答案不再適用於使用Genymotion 2.0創建的新設備,因此這是一個新的解決方案。

Install Google Play on Genymotion 2.0 在Genymotion 2.0上安裝Google Play

The reason it no longer applies is because Genymotion no longer includes Google Apps in the virtual device image. 它不再適用的原因是因爲Genymotion不再在虛擬設備映像中包含Google Apps。 According to Genymotion they are working with Google, but in the meantime this is a good workaround. 根據Genymotion,他們正在與谷歌合作,但與此同時,這是一個很好的解決方法。


#4樓

Update May 28th, 2017: This method is no longer supported by me and doesn't work anymore as far as I know. 2017年5月28日更新:我不再支持此方法,據我所知,此方法不再適用。 Don't try it. 不要試試。


# How To Add Google Apps and ARM Support to Genymotion v2.0+ # #如何將Google Apps和ARM支持添加到Genymotion v2.0 +#

Original Source: [GUIDE] Genymotion | 原始來源: [GUIDE] Genymotion | Installing ARM Translation and GApps - XDA-Developers 安裝ARM轉換和GApps - XDA開發人員

Note(Feb 2nd): Contrary to previous reports, it's been discovered that Android 4.4 does in fact work with ARM translation, although it is buggy. 注意(2月2日):與之前的報告相反,人們發現Android 4.4確實可以與ARM翻譯一起工作,儘管它有缺陷。 Follow the steps the same as before, just make sure you download the 4.4 GApps. 按照與以前相同的步驟,確保下載4.4 GApps。

UPDATE-v1.1: I've gotten more up-to-date builds of libhoudini and have updated the ZIP file. UPDATE-v1.1:我已經獲得了更多libhoudini的最新版本並更新了ZIP文件。 This fixes a lot of app crashes and hangs. 這修復了很多應用程序崩潰和掛起。 Just flash the new one, and it should work. 只需刷新新的,它應該工作。


This guide is for getting back both ARM translation/support (this is what causes the "INSTALL_FAILED_CPU_ABI_INCOMPATIBLE" errors) and Google Play apps in your Genymotion VM. 本指南用於恢復ARM翻譯/支持(這是導致“INSTALL_FAILED_CPU_ABI_INCOMPATIBLE”錯誤的原因)和Genymotion VM中的Google Play應用程序。

  1. Download the following ZIPs: 下載以下ZIP:
  2. Next open your Genymotion VM and go to the home screen 接下來打開您的Genymotion VM並轉到主屏幕
  3. Now drag&drop the Genymotion-ARM-Translation_v1.1.zip onto the Genymotion VM window. 現在將 Genymotion-ARM-Translation_v1.1.zip拖放到Genymotion VM窗口。
  4. It should say "File transfer in progress". 它應該說“正在進行文件傳輸”。 Once it asks you to flash it, click 'OK'. 一旦它要求您閃爍,請單擊“確定”。
  5. Now reboot your VM using ADB ( adb reboot ) or an app like ROM Toolbox. 現在使用ADB( adb reboot )或ROM Toolbox等應用程序重新啓動VM。 If nescessary you can simply close the VM window, but I don't recommend it. 如果必要,您只需關閉VM窗口,但我不推薦它。
  6. Once you're on the home screen again drag&drop the gapps-*-signed.zip (the name varies) onto your VM, and click 'OK' when asked. 進入主屏幕後,再次將 gapps - * - signed.zip (名稱變化)拖放到您的VM上,並在詢問時單擊“確定”。
  7. Once it finishes, again reboot your VM and open the Google Play Store. 完成後,再次重新啓動VM並打開Goog​​le Play商店。
  8. Sign in using your Google account 使用您的Google帳戶登錄
  9. Once in the Store go to the 'My Apps' menu and let everything update (it fixes a lot of issues). 進入商店後,轉到“我的應用”菜單,讓所有內容更新(它修復了很多問題)。 Also try updating Google Play Services directly. 另請嘗試直接更新 Google Play服務
  10. Now try searching for 'Netflix' and 'Google Drive' 現在嘗試搜索“Netflix”和“Google雲端硬盤”
  11. If both apps show up in the results and you're able to Download/Install them, then congratulations: you now have ARM support and Google Play fully set up! 如果兩個應用程序都顯示在結果中並且您可以下載/安裝它們,那麼恭喜您:您現在已經完全設置了ARM支持和Google Play!

I've tested this on Genymotion v2.0.1-v2.1 using Android 4.3 and 4.4 images. 我使用Android 4.3和4.4圖像在Genymotion v2.0.1-v2.1上測試了這個。 Feel free to skip the GApps steps if you only want the ARM support. 如果您只需要ARM支持,請隨意跳過GApps步驟。 It'll work perfectly fine by itself. 它本身就能很好地工作。


Old Zips: v1.0 . 老拉鍊: v1.0 Don't download these as they will not solve your issues. 請勿下載這些內容,因爲它們無法解決您的問題。 It is left for archival and experimental purposes. 它留給檔案和實驗目的。


#5樓

Try to do all the steps specified in the link below and before that upgrade VirtualBox to 4.2 by following the instructions in VirtualBox 4.2.0 Released With Support For Drag'n'drop From Host To Linux Guests, More . 嘗試執行下面鏈接中指定的所有步驟,然後按照VirtualBox 4.2.0中的說明將VirtualBox升級到4.2, 發佈支持從主機拖放到Linux客戶端,更多 Then upgrade Genymotion to the latest version. 然後將Genymotion升級到最新版本。

Go to the desktop and run Genymotion. 轉到桌面並運行Genymotion。 Select a virtual device with Android version 4.2 and then drag and drop the two files Genymotion-ARM-Translation_v1.1.zip first. 選擇Android版本爲4.2的虛擬設備,然後先拖放兩個文件Genymotion-ARM-Translation_v1.1.zip Then Genymotion will show progress and after this it will promt a dialog. 然後Genymotion將顯示進度,然後它將提示對話。 Then click OK and it will ask to reboot the device. 然後單擊“確定”,它將要求重新啓動設備。 Restart ADB . 重啓ADB Do the same steps for the second file, gapps-jb-20130812-signed.zip and restart ADB. 對第二個文件gapps-jb-20130812-signed.zip執行相同的步驟並重新啓動ADB。

I hope this will resolve the issue. 我希望這能解決這個問題。 Check this link - it explains it clearer. 檢查此鏈接 - 它解釋得更清楚。


#6樓

Alright, this is probably the easiest way to do it: 好吧,這可能是最簡單的方法:

  1. First of all, you will have to install GAPPS . 首先,您必須安裝GAPPS
  2. Next, open the virtual box and wait for the home screen to show up on Genymotion. 接下來,打開虛擬框並等待主屏幕顯示在Genymotion上。
  3. Drag and drop the GAPPS folder that you had downloaded earlier on into Genymotion. 將先前下載的GAPPS文件夾拖放到Genymotion中。
  4. You would get a prompt. 你會得到一個提示。 Click OK. 單擊確定。 You would see a lot of errors, but just ignore them and wait for the successful prompt to come up. 您會看到很多錯誤,但只是忽略它們並等待成功的提示出現。 Click OK again and restart the virtual device. 再次單擊“確定”並重新啓動虛擬設備。
  5. A Google account screen should show up. 應顯示Google帳戶屏幕。 Open up the playstore app if it doesn't show up. 如果Playstore應用程序沒有顯示,請打開它。 Sign into your account. 登錄到您的帳戶。 Again ignore the errors. 再次忽略錯誤。
  6. The playstore should open now and should be fully functional. Playstore現在應該打開並且應該完全正常運行。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章