Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Android StrictMode policy violation; ~duration=381 ms: android.os.strictmode.DiskReadViolation #442

Open
13120241790 opened this issue Aug 10, 2022 · 0 comments

Comments

@13120241790
Copy link

13120241790 commented Aug 10, 2022

StrictMode policy violation; ~duration=383 ms: android.os.strictmode.DiskReadViolation

       at java.io.UnixFileSystem.checkAccess(UnixFileSystem.java:281)
        at java.io.File.exists(File.java:815)
        at com.opensource.svgaplayer.SVGACache.onCreate(SVGACache.kt:40)
        at com.opensource.svgaplayer.SVGACache.onCreate(SVGACache.kt:33)
        at com.opensource.svgaplayer.SVGAParser.init(SVGAParser.kt:128)

API :
svgaParser.init(getContext());

这种严苛模式下的耗时能不能提供一个异步接口,很多人用直接在页面的 onCreate 直接这样用其实影响了页面响应速度 每次主线程耗时约 400ms

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant