java - 将谷歌地图实现为片段后,我在运行块中没有收到任何错误,但片段没有在我的设备上显示地图
问题描述
应用程序运行正常....但是当我单击应该调出地图片段的图标时,它仍保留在当前片段上
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.
这是我的应用程序代码的 git 链接https://github.com/wisdom3541/findme
解决方案
您在方法 inbreak
的切换中case R.id.location
缺少a ,这就是应用程序跳过位置并直接转到.onNavigationItemSelected
menu.java
case R.id.add_friends
添加后break
:
case R.id.location:
getSupportFragmentManager().beginTransaction().replace(R.id.frag_cont, new currentlocation()).commit();
break;
选择后,您的 Map Activity 将毫无问题地启动。希望这可以帮助!:)
推荐阅读
- json - Ansible,从 JSON 响应中读取值时出错
- mysql - 当我尝试运行查询以查找 sesison 在一天内创建 30 天的总数时
- javascript - 如何通过 ajax 对 REST Web 服务进行身份验证
- ios - 号码检测中的 Swift IOS 自定义操作
- sql - 如何在 Postgres 中实现并行
- cosign-api - 使用 CoSign 签署位于 SharePoint 中的文档
- excel - VBA - 在字符串中查找名称的完全匹配
- ios - Xcode 10 - iOS 9.0 [12] 之前的安全区域布局指南错误
- visual-studio-2017 - NuGet 包管理器安装系统 dll
- apache-spark - Spark 结构化流检查点兼容性