Android 4.3.47报错 setPathAsync NetworkOnMainThreadException #2233
-
Beta Was this translation helpful? Give feedback.
Answered by
kevingpqi123
Apr 9, 2024
Replies: 2 comments
-
为啥这个问题官方都没人看。。。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
调用 setPathAsync 完,直接在下面执行 play 方法即可,不需要回调里面的操作,另外确认下onAnimationUpdate 会调用是否执行了其它操作,对于 pag 而言, 正常播放 flush 方法是异步执行的,不是在主线程 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kevingpqi123
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
调用 setPathAsync 完,直接在下面执行 play 方法即可,不需要回调里面的操作,另外确认下onAnimationUpdate 会调用是否执行了其它操作,对于 pag 而言, 正常播放 flush 方法是异步执行的,不是在主线程