Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aichixiguaj opened this issue Jul 3, 2019 · 3 comments

Comments

@aichixiguaj
Copy link

new SweetAlertDialog(this, SweetAlertDialog.WARNING_TYPE)
.setTitleText("Are you sure?")
.setContentText("Won't be able to recover this file!")
.setConfirmText("Yes,delete it!")
.show();
初始化时候报错

@miladblg
Copy link

miladblg commented Jul 6, 2019

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

error_frame_in.xml:

<alpha
    android:fromAlpha="0"
    android:toAlpha="1"
    android:duration="400"/>

@kevinjam
Copy link

kevinjam commented May 14, 2020

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

error_frame_in.xml:

<alpha
    android:fromAlpha="0"
    android:toAlpha="1"
    android:duration="400"/>
This is working well in Android Studio 4.1 Canary 
Just add error_frame_in.xml inside anim as @miladblg suggested
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
    <alpha
        android:fromAlpha="0"
        android:toAlpha="1"
        android:duration="400"/>
</set>

@rscherf
Copy link

rscherf commented Mar 19, 2021

I'm seeing this error again in Android Studio 4.1.3, with an error of:

Element sweet:cn.pedant.SweetAlert.Rotate3dAnimation is not allowed here

And the crash resolves as:

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

Screen Shot 2021-03-19 at 8 02 50 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants