Similar to Lottie. Render After Effects / Animate CC (Flash) animations natively on Android and iOS, Web. 使用 SVGAPlayer 在 Android、iOS、Web中播放 After Effects / Animate CC (Flash) 动画。
E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'end' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:180)
at java.util.zip.Inflater.(Inflater.java:104)
at java.util.zip.Inflater.(Inflater.java:111)
at com.opensource.svgaplayer.SVGAParser.inflate(SVGAParser.kt:265)
at com.opensource.svgaplayer.SVGAParser.parse(SVGAParser.kt:174)
at com.opensource.svgaplayer.SVGAParser$pars
Process: com.aipai.cloud, PID: 29992
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.Handler.post(java.lang.Runnable)' on a null object reference
at com.opensource.svgaplayer.SVGAImageView$loadAttrs$$inlined$let$lambda$1$2.onComplete(SVGAImageView.kt:130)
at com.opensource.svgaplayer.SVGAParser$parse$7$$special$$inlined$synchronized$lambda$1$1.run(SVGAParser.kt:142)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)
java.lang.OutOfMemoryError: Failed to allocate a 3089802 byte allocation with 2504048 free bytes and 2MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.BitmapFactory.nativeDecodeByteArray(Native Method)
at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:537)
at com.opensource.svgaplayer.SVGAVideoEntity.resetImages(SVGAVideoEntity.kt:88)
at com.opensource.svgaplayer.SVGAVideoEntity.(SVGAVideoEntity.kt:57)
at com.opensource.svgaplayer.SVGAParser.parse(SVGAParser.kt:175)
at com.opensource.svgaplayer.SVGAParser.access$parse(SVGAParser.kt:25)
at com.opensource.svgaplayer.SVGAParser$parse$5.run(SVGAParser.kt:104)
at java.lang.Thread.run(Thread.java:760)
直接使用该框架播放svg动画时,多次播放动画 会出现内存溢出
Failed to allocate a 1325462 byte allocation with 541118 free bytes and 528KB until OOM
com.opensource.svgaplayer.SVGAVideoEntity.resetImages(SVGAVideoEntity.kt:84)
E/MtaSDK: java.lang.OutOfMemoryError: Failed to allocate a 4002012 byte allocation with 2277808 free bytes and 2MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.BitmapFactory.nativeDecodeByteArray(Native Method)
at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:533)
at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:556)
at com.opensource.svgaplayer.SVGAVideoEntity.resetImages(SVGAVideoEntity.kt:80)
at com.opensource.svgaplayer.SVGAVideoEntity.(SVGAVideoEntity.kt:54)
at com.opensource.svgaplayer.SVGAParser.parse(SVGAParser.kt:169)
at com.opensource.svgaplayer.SVGAParser.access$parse(SVGAParser.kt:23)
at com.opensource.svgaplayer.SVGAParser$parse$5.run(SVGAParser.kt:96)
at java.lang.Thread.run(Thread.java:761)