这几天在接入腾讯的 Tbs 服务
但是一直失败 看日志有这个
07-22 19:30:39.830 8129-8768/com.example D/dalvikvm: DexOpt: --- BEGIN 'ZIPReader.jar' (bootstrap=0) ---
07-22 19:30:40.005 8129-8768/com.example D/dalvikvm: DexOpt: --- END 'ZIPReader.jar' (success) ---
DEX prep '/data/data/com.example/app_tbs/share/miniqb/core_tmp/ZIPReader.jar': unzip in 4ms, rewrite 171ms
07-22 19:30:40.045 8129-8768/com.example D/dalvikvm: DexOpt: --- BEGIN 'miniqb_dex.jar' (bootstrap=0) ---
07-22 19:30:41.165 8129-8573/com.example W/System.err: java.io.IOException: open failed: EACCES (Permission denied)
07-22 19:30:41.360 8129-8573/com.example W/System.err: at java.io.File.createNewFile(File.java:940)
07-22 19:30:41.365 8129-8573/com.example W/System.err: at com.tencent.tbs.sdk.extension.s.o(Unknown Source)
at com.tencent.tbs.sdk.extension.TbsSDKExtension.b(Unknown Source)
at com.tencent.tbs.sdk.extension.TbsSDKExtension.a(Unknown Source)
at
com.tencent.tbs.sdk.extension.n.run(Unknown Source)
at java.util.Timer$
TimerImpl.run(Timer.java:284)
Caused by: libcore.io.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
at java.io.File.createNewFile(File.java:933)
... 5 more
07-22 19:30:41.415 8129-8768/com.example D/dalvikvm: DexOpt: --- END 'miniqb_dex.jar' (success) ---
DEX prep '/data/data/com.example/app_tbs/share/miniqb/core_tmp/miniqb_dex.jar': unzip in 36ms, rewrite 1371ms
07-22 19:30:41.485 8129-8573/com.example W/System.err: java.io.IOException: open failed: EACCES (Permission denied)
at java.io.File.createNewFile(File.java:940)
at com.tencent.tbs.sdk.extension.s.o(Unknown Source)
at com.tencent.tbs.sdk.extension.TbsSDKExtension.a(Unknown Source)
at com.tencent.tbs.sdk.extension.TbsSDKExtension.b(Unknown Source)
at com.tencent.tbs.sdk.extension.TbsSDKExtension.a(Unknown Source)
at
com.tencent.tbs.sdk.extension.n.run(Unknown Source)
at java.util.Timer$
TimerImpl.run(Timer.java:284)
Caused by: libcore.io.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
at java.io.File.createNewFile(File.java:933)
... 6 more
07-22 19:30:45.890 8129-8131/com.example D/dalvikvm: GC_CONCURRENT freed 2013K, 24% free 18367K/24007K, paused 4ms+5ms, total 57ms
貌似是 app 依赖的 tbs 插件在下载一些需要的东西时出现了问题
不能保存
但是这个 app 本身是有存取权限的,能够从网上下载文件并保存
为什么内部插件不行呢?
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/473121
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.