The library
implementation com.wang.avi:library:2.1.3
is not working now. Replace with
implementation io.github.maitrungduc1410:AVLoadingIndicatorView:2.1.4
Refer to the issues here.