我試圖更新我的Android應用程序(這需要從7版本升級SDK支持)到新的谷歌地圖API的Android V2。「與谷歌未知問題上發揮服務」在Android
我目前試過使用Google's documentation和許多教程,如this one。
但是,當我瀏覽地圖視圖,我得到了一個空白屏幕下面的消息:「與谷歌Play服務的未知問題」在logcat中沒有明確的錯誤或警告消息。
事情我已經試過
- 我的設備具有最新的谷歌Play版本
- 我使用的,而不是MapFragment SupportMapFragment
- 所有必需的權限,在清單
- 將Maps API庫添加到項目中
- Eclipse和SDK是最新的
- 當我使用在Google API控制檯上與Google Maps Android API密鑰鏈接的密鑰存儲庫導出應用程序時,該消息仍然顯示。
我的目標是在上FragmentActivity選項卡窗口的地圖視圖顯示在那裏我使用的是TabHost但這個問題仍然存在the tutorial code。
運行與SupportMapFragment活動時,下面的日誌信息:
05-22 11:32:53.219: I/dalvikvm(6578): Could not find method android.support.v4.app.Fragment.onAttach, referenced from method com.google.android.gms.maps.SupportMapFragment.onAttach
05-22 11:32:53.219: W/dalvikvm(6578): VFY: unable to resolve virtual method 730: Landroid/support/v4/app/Fragment;.onAttach (Landroid/app/Activity;)V
05-22 11:32:53.219: D/dalvikvm(6578): VFY: replacing opcode 0x6f at 0x0000
05-22 11:32:53.219: D/dalvikvm(6578): VFY: dead code 0x0003-0008 in Lcom/google/android/gms/maps/SupportMapFragment;.onAttach (Landroid/app/Activity;)V
05-22 11:32:53.219: I/dalvikvm(6578): Could not find method android.support.v4.app.Fragment.onInflate, referenced from method com.google.android.gms.maps.SupportMapFragment.onInflate
05-22 11:32:53.219: W/dalvikvm(6578): VFY: unable to resolve virtual method 744: Landroid/support/v4/app/Fragment;.onInflate (Landroid/app/Activity;Landroid/util/AttributeSet;Landroid/os/Bundle;)V
05-22 11:32:53.219: D/dalvikvm(6578): VFY: replacing opcode 0x6f at 0x0000
05-22 11:32:53.219: D/dalvikvm(6578): VFY: dead code 0x0003-001b in Lcom/google/android/gms/maps/SupportMapFragment;.onInflate (Landroid/app/Activity;Landroid/util/AttributeSet;Landroid/os/Bundle;)V
東西告訴我,那將是非常重要的。 ;)我期待任何想法或建議。謝謝你們!
已經添加了支持圖書館 – Raghunandan