gpt4 book ai didi

android - 未显示 Google map v2

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:41:00 24 4
gpt4 key购买 nike

我一直在尝试运行新 Google maps V2 API的示例项目

然后显示一个空白屏幕enter image description here

问题是为什么它在 2.2 设备上显示 map ,在堆栈跟踪中我看到以下消息:

  12-06 09:40:36.039: W/dalvikvm(14657): Unable to resolve superclass of Lmaps/a/du; (411)
12-06 09:40:36.039: W/dalvikvm(14657): Link of class 'Lmaps/a/du;' failed
12-06 09:40:36.039: W/dalvikvm(14657): Unable to resolve superclass of Lmaps/a/ej; (2363)
12-06 09:40:36.039: W/dalvikvm(14657): Link of class 'Lmaps/a/ej;' failed
12-06 09:40:36.039: W/dalvikvm(14657): Unable to resolve superclass of Lmaps/j/k; (2379)
12-06 09:40:36.039: W/dalvikvm(14657): Link of class 'Lmaps/j/k;' failed
12-06 09:40:36.039: E/dalvikvm(14657): Could not find class 'maps.j.k', referenced from method maps.y.ae.a
12-06 09:40:36.039: W/dalvikvm(14657): VFY: unable to resolve new-instance 3571 (Lmaps/j/k;) in Lmaps/y/ae;
12-06 09:40:36.039: D/dalvikvm(14657): VFY: replacing opcode 0x22 at 0x007d
12-06 09:40:36.125: D/dalvikvm(14657): VFY: dead code 0x007f-008f in Lmaps/y/ae;.a (Landroid/view/LayoutInflater;Lcom/google/android/gms/maps/GoogleMapOptions;Z)Lmaps/y/ae;
12-06 09:40:36.192: I/dalvikvm(14657): Could not find method java.io.IOException.<init>, referenced from method maps.bg.e.a
12-06 09:40:36.195: W/dalvikvm(14657): VFY: unable to resolve direct method 14965: Ljava/io/IOException;.<init> (Ljava/lang/String;Ljava/lang/Throwable;)V
12-06 09:40:36.195: D/dalvikvm(14657): VFY: replacing opcode 0x70 at 0x0087
12-06 09:40:36.195: D/dalvikvm(14657): VFY: dead code 0x008a-008c in Lmaps/bg/e;.a ([B)Ljava/util/Hashtable;
12-06 09:40:36.555: D/dalvikvm(14657): GC_FOR_MALLOC freed 4020 objects / 327288 bytes in 61ms
12-06 09:40:36.707: E/Google Maps Android API(14657): Google Maps application is missing.

编辑好吧,看来我们还不能在模拟器上运行它。

最佳答案

logcat 看到以下消息:

12-06 09:40:36.707: E/Google Maps Android API(14657): Google Maps application is missing.

所以正在安装 Google Maps 解决了问题。

此外,似乎谷歌地图安装在某些国家/地区被阻止,如果没有安装谷歌地图,在 2.2 上运行该应用程序根本无法运行。

根据评论,用户发布了一个代码来检查是否在以下问题中安装了谷歌地图:

Google Maps Android API V2 check if GoogleMaps are installed on device

关于android - 未显示 Google map v2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13727439/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com