replace
implementation com.wang.avi:library:2.1.3
as it is not working now.
with
implementation io.github.maitrungduc1410:AVLoadingIndicatorView:2.1.4
it should be working successfully.