我试图更新我的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