收藏
回答

接入微信支付的时候报错偶尔APP会重启,求助

接入微信支付的时候报错,这个是什么原因导致的? 求教

在支付成功后 onResp里面调用 finish的话 会导致接入的APP(游戏)直接重启了










 java.io.FileNotFoundException: /storage/emulated/0/Tencent/mta/.mid.txt: open failed: ENOENT (No such file or directory)

05-09 12:35:00.272  3655  3675 W MID     :      at libcore.io.IoBridge.open(IoBridge.java:452)

05-09 12:35:00.272  3655  3675 W MID     :      at java.io.FileInputStream.<init>(FileInputStream.java:76)

05-09 12:35:00.272  3655  3675 W MID     :      at java.io.FileReader.<init>(FileReader.java:42)

05-09 12:35:00.272  3655  3675 W MID     :      at com.tencent.a.a.a.a.a.a(Unknown Source)

05-09 12:35:00.272  3655  3675 W MID     :      at com.tencent.a.a.a.a.b.b(Unknown Source)

05-09 12:35:00.272  3655  3675 W MID     :      at com.tencent.a.a.a.a.f.o(Unknown Source)

05-09 12:35:00.272  3655  3675 W MID     :      at com.tencent.a.a.a.a.g.b(Unknown Source)

05-09 12:35:00.272  3655  3675 W MID     :      at com.tencent.a.a.a.a.g.p(Unknown Source)

05-09 12:35:00.272  3655  3675 W MID     :      at com.tencent.wxop.stat.StatConfig.getLocalMidOnly(Unknown Source)

05-09 12:35:00.272  3655  3675 W MID     :      at com.tencent.wxop.stat.event.e.<init>(Unknown Source)

05-09 12:35:00.272  3655  3675 W MID     :      at com.tencent.wxop.stat.event.k.<init>(Unknown Source)

05-09 12:35:00.272  3655  3675 W MID     :      at com.tencent.wxop.stat.StatServiceImpl.a(Unknown Source)

05-09 12:35:00.272  3655  3675 W MID     :      at com.tencent.wxop.stat.StatServiceImpl.a(Unknown Source)

05-09 12:35:00.272  3655  3675 W MID     :      at com.tencent.wxop.stat.an.run(Unknown Source)

05-09 12:35:00.272  3655  3675 W MID     :      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

05-09 12:35:00.272  3655  3675 W MID     :      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

05-09 12:35:00.272  3655  3675 W MID     :      at java.lang.Thread.run(Thread.java:818)

05-09 12:35:00.272  3655  3675 W MID     : Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)

05-09 12:35:00.272  3655  3675 W MID     :      at libcore.io.Posix.open(Native Method)

05-09 12:35:00.272  3655  3675 W MID     :      at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)

05-09 12:35:00.272  3655  3675 W MID     :      at libcore.io.IoBridge.open(IoBridge.java:438)


回答关注问题邀请回答
收藏

1 个回答

  • Blue
    Blue
    2019-12-25

    您解决了吗?我现在也有这个问题,同样的错误

    2019-12-25
    有用 2
    回复 1
    • 木子尘然
      木子尘然
      2021-09-14
      请问你解决这个问题了吗! 最近一个老项目遇到这个问题,新手求答案。
      2021-09-14
      回复
登录 后发表内容