将Google Maps作为片段实现后,我在运行块中没有任何错误,但片段未在我的设备上显示该地图

应用程序正常运行....但是当我单击应显示地图片段的图标时,它仍保留在当前片段中

runtime block ::: /.example.findm: Unsupported class loader
W/.example.findm: Skipping duplicate class check due to unsupported classloader
I/Google Maps Android API: Google Play services client version: 12451000
W/RenderThread: type=1400 audit(0.0:412457): avc: denied { search } for name="battery" dev="sysfs" ino=7011 scontext=u:r:untrusted_app:s0:c174,c256,c512,c768 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=dir permissive=0
I/Google Maps Android API: Google Play services package version: 19530035
W/.example.findm: accessing hidden field Ljava/nio/Buffer;->address:J (light greylist,reflection)
I/.example.findm: The ClassLoaderContext is a special shared library.

image of run time display

这是我到我的应用代码https://github.com/wisdom3541/findme的git链接

feixuezhangluo 回答:将Google Maps作为片段实现后,我在运行块中没有任何错误,但片段未在我的设备上显示该地图

您在break的{​​{1}}方法中的开关case R.id.location中缺少onNavigationItemSelected,这就是应用程序跳过位置并直接转到{{1 }}。

一旦添加menu.java

case R.id.add_friends
选择您的

您的“地图活动”时不会出现问题。希望这可以帮助! :)

本文链接:https://www.f2er.com/3150176.html

大家都在问