PAG动画在安卓设备上展示不出来,显示空白 #3537
Answered
by
Hparty
laoyingyong
asked this question in
Q&A
PAG动画在安卓设备上展示不出来,显示空白
#3537
|
是这样的,我单独打包给测试人员测的就没有问题,明明是同样的代码,同样的设备。 |
Answered by
Hparty
Jun 30, 2026
Replies: 5 comments 5 replies
|
请检查一下手机的以下系统设置: 设置 → 辅助功能(无障碍)→ 移除动画 是否被开启 可参考之前的相同问题:#1632 |
0 replies
|
检查了一下,没有在无障碍和开发者选项中关闭动画,如果关闭,只是显示一张静止的图片。我遇到的问题是什么都不显示,仿佛是透明一样
…---原始邮件---
发件人: ***@***.***>
发送时间: 2026年6月30日(周二) 中午12:06
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [Tencent/libpag] PAG动画在安卓设备上展示不出来,显示空白 (Discussion #3537)
请检查一下手机的以下系统设置:
设置 → 辅助功能(无障碍)→ 移除动画 是否被开启
开发者选项 → 动画程序时长缩放(窗口/过渡/Animator) 是否被设为「动画关闭」
libpag 在 Android 端依赖系统 ValueAnimator 驱动动画播放,上述任一开关关闭系统动画,都会导致依赖 ValueAnimator 的动画无法正常播放(Lottie 等其他动画库同理)。把对应开关恢复到默认值后再试一下。
可参考之前的相同问题:#1632
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
1 reply
|
代码都是一样的,流水线打包集成到系统里就有问题。我把system目录下的apk文件拿出来单独安装也没有问题。没有videoEnable之类的设置。这个问题难就难在我本身自己无法复现,公司流水线打包集成就有问题
…---原始邮件---
发件人: ***@***.***>
发送时间: 2026年6月30日(周二) 下午2:12
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [Tencent/libpag] PAG动画在安卓设备上展示不出来,显示空白 (Discussion #3537)
调用方式前后都是一致的吗?是否在release环境里设置了特殊的行为,比如说关闭了videoEnable
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
1 reply
|
目前初步排查是硬件加速被关闭导致的,请问这个动画是否依赖硬件加速?
…---原始邮件---
发件人: ***@***.***>
发送时间: 2026年6月30日(周二) 下午2:21
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [Tencent/libpag] PAG动画在安卓设备上展示不出来,显示空白 (Discussion #3537)
本地用脚本打包试试呢,看看到底做了什么。这个看着像是打包脚本的问题
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
2 replies
|
不是,是指安卓里面的hardwareAccelerated="false",也就是决定用GPU渲染还是CPU来渲染
…---原始邮件---
发件人: ***@***.***>
发送时间: 2026年6月30日(周二) 晚上7:03
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [Tencent/libpag] PAG动画在安卓设备上展示不出来,显示空白 (Discussion #3537)
是指SIMD这种硬件加速么?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PAGView继承TextureView,hardwareAccelerated = false之后确实渲染不了