Linear progress bar giving error java.lang.reflect.InvocationTargetException

I am creating linear progress bar dynamically, previously it was working fine but now it is giving error and crashing the application working fine in the companion attaching the aia
test2.aia (131.9 KB) here are the logs of the application, Tested in android 8. here are some logs

Rejecting re-init on previously-failed class java.lang.Class<com.google.android.material.progressindicator.DeterminateDrawable$1>: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/dynamicanimation/animation/FloatPropertyCompat;

Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[zip file "/data/app/com.niotron.ammar5287.test2-jMU_0LL3dVlkkav8yB1NNQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.niotron.ammar5287.test2-jMU_0LL3dVlkkav8yB1NNQ==/lib/arm64, /system/lib64, /system/vendor/lib64]]
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.dynamicanimation.animation.FloatPropertyCompat" on path: DexPathList[[zip file "/data/app/com.niotron.ammar5287.test2-jMU_0LL3dVlkkav8yB1NNQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.niotron.ammar5287.test2-jMU_0LL3dVlkkav8yB1NNQ==/lib/arm64, /system/lib64, /system/vendor/lib64]]