問題描述
我想在模擬器中安裝我的地圖應用程序,它安裝得很好,但沒有在上面獲取地圖,在 log cat 中顯示錯誤,如 Google Maps Android API v2 僅支持具有 OpenGL ES 2.0 及更高版本的設備,但我只看到縮放按鈕和所有其他用戶界面.我必須做什么才能在 android API v2 的模擬器中獲取地圖.
I want to install my map application in emulator it installed fine but not getting map on it,showing error in log cat like Google Maps Android API v2 only supports devices with OpenGL ES 2.0 and above, but I am Just seeing zoom buttons and all other UI. What i have to do to get map in emulator in android API v2.
我點擊了這個鏈接:在 Android 模擬器上運行 Google Maps v2一個>
推薦答案
我終于在我的模擬器中得到了地圖.我按照這些步驟來實現它.
I got finally map in my emulator. I followed these steps to achieve it.
創建avd并啟動模擬器
Create avd and start emulator
轉到 Android SDK 中存在的平臺工具路徑并將這些 apk 放入其中.
Go to platform tools path present in Android SDK and put these apk's in it.
- 安裝com.android.vending.apk(Google Play 商店,v.3.10.9)
- 安裝com.google.android.gms.apk(Google Play 服務,v.2.0.12)
- Install com.android.vending.apk (Google Play Store, v.3.10.9)
- Install com.google.android.gms.apk (Google Play Service, v.2.0.12)
使用命令提示符(shift+右鍵單擊-->在此處打開命令窗口)轉到平臺工具路徑,一一安裝這些apk.按照這些命令進行操作
Install these apk's one by one by going to platform tools path by using command prompt(shift+Right click-->open command window here).Follow these commands
- adb 設備
- adb install com.android.vending.apk
- adb 安裝 com.google.android.gms.apk
就是這樣.:)
這篇關于地圖沒有進入模擬器android api v2的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!