sweet-alert-dialog icon indicating copy to clipboard operation
sweet-alert-dialog copied to clipboard

Unknown animation name: cn.pedant.SweetAlert.Rotate3dAnimation error:null

Open ghost opened this issue 5 years ago • 7 comments

Unknown animation name: cn.pedant.SweetAlert.Rotate3dAnimation error:null

ghost avatar Mar 25 '19 08:03 ghost

在组件化中使用的时候,间接依赖,会出现Caused by: java.lang.RuntimeException: Unknown animation name: cn.pedant.SweetAlert.Rotate3dAnimation

Joinfeng avatar Mar 30 '19 03:03 Joinfeng

正常依赖 也报错1.3

tankman1016 avatar May 16 '19 03:05 tankman1016

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

pbwauyo avatar Jun 27 '19 07:06 pbwauyo

在依赖的lib里面加上buildToolsVersion '27.0.3'或者更大

zhongdevin avatar Jun 27 '19 07:06 zhongdevin

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"/>

miladblg avatar Jul 06 '19 09:07 miladblg

上面的设置都做过之后,还是不行 (正常依赖)

caoanqi avatar Sep 04 '19 05:09 caoanqi

添加依赖就有异常,直接将此module引入使用吧,缺少的文件从原module中copy过去。

Joinfeng avatar Sep 05 '19 03:09 Joinfeng