pedant / sweet-alert-dialog

SweetAlert for Android, a beautiful and clever alert dialog
http://pedant.github.io
7.27k stars 1.94k forks source link

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

Open ghost opened 5 years ago

ghost commented 5 years ago

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

Joinfeng commented 5 years ago

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

tankman1016 commented 5 years ago

正常依赖 也报错1.3

pbwauyo commented 5 years ago

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

zhongdevin commented 5 years ago

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

miladblg commented 5 years ago

you should add an animation file to anim folder of res and use below code:

error_frame_in.xml: <?xml version="1.0" encoding="utf-8"?>

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

caoanqi commented 5 years ago

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

Joinfeng commented 5 years ago

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