sweet-alert-dialog
sweet-alert-dialog copied to clipboard
Unknown animation name: cn.pedant.SweetAlert.Rotate3dAnimation error:null
Unknown animation name: cn.pedant.SweetAlert.Rotate3dAnimation error:null
在组件化中使用的时候,间接依赖,会出现Caused by: java.lang.RuntimeException: Unknown animation name: cn.pedant.SweetAlert.Rotate3dAnimation
正常依赖 也报错1.3
This library is no longer maintained and works right for lower targetSDKVersions but will fail for higher ones. Please follow this link to use the current supported library Forked SweetAlert Library
在依赖的lib里面加上buildToolsVersion '27.0.3'或者更大
you should add an animation file to anim folder of res and use below code:
error_frame_in.xml:
<set xmlns:android="http://schemas.android.com/apk/res/android" xmlns:sweet="http://schemas.android.com/apk/res-auto" android:interpolator="@android:anim/linear_interpolator" android:shareInterpolator="true">
<alpha
android:fromAlpha="0"
android:toAlpha="1"
android:duration="400"/>
上面的设置都做过之后,还是不行 (正常依赖)
添加依赖就有异常,直接将此module引入使用吧,缺少的文件从原module中copy过去。