首页 / 浏览问题 / 移动GIS / 问题详情
安卓示例代码地图加载不出来 地图是黑的
1EXP 2022年09月08日
使用产品:安卓 10i 操作系统:win10 x64  模拟器   api:30 安卓11
数据类型:
问题详细描述:我使用的是百度网盘那个示例代码 ,许可和SympleData都放进去了 ,运行之后地图显示不出来 运行过程中有报错
W/e.myapplication: type=1400 audit(0.0:917): avc: denied { read } for name="/" dev="dm-4" ino=2 scontext=u:r:untrusted_app_27:s0:c163,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=com.example.myapplication
W/System.err: java.io.IOException: Cleartext HTTP traffic to log.supermap.com not permitted
        at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:127)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:462)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:262)
        at com.supermap.data.LogInfoService$1.run(LogInfoService.java:52)
        at java.lang.Thread.run(Thread.java:923)
E/LogInfoService: Get VideoList Request Failed....
W/e.myapplicatio: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
W/e.myapplicatio: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
W/e.myapplication: type=1400 audit(0.0:918): avc: denied { read } for name="/" dev="dm-4" ino=2 scontext=u:r:untrusted_app_27:s0:c163,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=com.example.myapplication
W/System.err: java.io.IOException: Cleartext HTTP traffic to log.supermap.com not permitted
        at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:127)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:462)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:262)
        at com.supermap.data.LogInfoService$1.run(LogInfoService.java:52)
        at java.lang.Thread.run(Thread.java:923)
E/LogInfoService: Get VideoList Request Failed....
W/e.myapplication: type=1400 audit(0.0:919): avc: denied { read } for name="/" dev="dm-4" ino=2 scontext=u:r:untrusted_app_27:s0:c163,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=com.example.myapplication
W/System.err: java.io.IOException: Cleartext HTTP traffic to log.supermap.com not permitted
W/System.err:     at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:127)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:462)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131)
W/System.err:     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:262)
        at com.supermap.data.LogInfoService$1.run(LogInfoService.java:52)
        at java.lang.Thread.run(Thread.java:923)
E/LogInfoService: Get VideoList Request Failed....
W/e.myapplication: type=1400 audit(0.0:920): avc: denied { read } for name="/" dev="dm-4" ino=2 scontext=u:r:untrusted_app_27:s0:c163,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=com.example.myapplication
W/System.err: java.io.IOException: Cleartext HTTP traffic to log.supermap.com not permitted
W/System.err:     at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:127)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:462)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:262)
        at com.supermap.data.LogInfoService$1.run(LogInfoService.java:52)
        at java.lang.Thread.run(Thread.java:923)
E/LogInfoService: Get VideoList Request Failed....
W/e.myapplication: type=1400 audit(0.0:921): avc: denied { read } for name="/" dev="dm-4" ino=2 scontext=u:r:untrusted_app_27:s0:c163,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=com.example.myapplication
W/System.err: java.io.IOException: Cleartext HTTP traffic to log.supermap.com not permitted
        at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:127)
W/System.err:     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:462)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:262)
        at com.supermap.data.LogInfoService$1.run(LogInfoService.java:52)
        at java.lang.Thread.run(Thread.java:923)
E/LogInfoService: Get VideoList Request Failed....
。。。。。。。

W/e.myapplication: type=1400 audit(0.0:923): avc: denied { read } for name="/" dev="dm-4" ino=2 scontext=u:r:untrusted_app_27:s0:c163,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=com.example.myapplication
W/System.err: java.io.IOException: Cleartext HTTP traffic to log.supermap.com not permitted
W/System.err:     at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:127)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:462)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:262)
        at com.supermap.data.LogInfoService$1.run(LogInfoService.java:52)
        at java.lang.Thread.run(Thread.java:923)
E/LogInfoService: Get VideoList Request Failed....

1个回答

您好,建议您使用真机来调试,同时注意gradle版本不要太高
3,745EXP 2022年09月09日
...