問題描述
我想在模擬器中安裝我的地圖應(yīng)用程序,它安裝得很好,但沒有在上面獲取地圖,在 log cat 中顯示錯誤,如 Google Maps Android API v2 僅支持具有 OpenGL ES 2.0 及更高版本的設(shè)備,但我只看到縮放按鈕和所有其他用戶界面.我必須做什么才能在 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.
我點(diǎn)擊了這個鏈接:在 Android 模擬器上運(yùn)行 Google Maps v2一個>
推薦答案
我終于在我的模擬器中得到了地圖.我按照這些步驟來實(shí)現(xiàn)它.
I got finally map in my emulator. I followed these steps to achieve it.
創(chuàng)建avd并啟動模擬器
Create avd and start emulator
轉(zhuǎn)到 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 服務(wù),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+右鍵單擊-->在此處打開命令窗口)轉(zhuǎn)到平臺工具路徑,一一安裝這些apk.按照這些命令進(jìn)行操作
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 設(shè)備
- adb install com.android.vending.apk
- adb 安裝 com.google.android.gms.apk
就是這樣.:)
這篇關(guān)于地圖沒有進(jìn)入模擬器android api v2的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!