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

java.lang.RuntimeException: Unknown animation name: cn.pedant.SweetAlert.Rotate3dAnimation error:null #209

Open
ChinaYangYan opened this issue Mar 6, 2020 · 10 comments

Comments

@ChinaYangYan
Copy link

Run Android Q throw the " java.lang.RuntimeException: Unknown animation name: cn.pedant.SweetAlert.Rotate3dAnimation error:null"

@F0RIS
Copy link

F0RIS commented Mar 8, 2020

check this fork https://github.com/F0RIS/sweet-alert-dialog

@rscherf
Copy link

rscherf commented Mar 19, 2021

This has appear again, even in the above fork, a year later. Any ideas?

@rajesh-karmaker
Copy link

rajesh-karmaker commented Mar 25, 2021

Simple Solution:

  1. Create a "anim" folder under "res" folder
  2. Create xml file under "anim" folder and xml name must be "error_frame_in.xml"
  3. then paste this code

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


<!--<sweet:cn.pedant.SweetAlert.Rotate3dAnimation
    sweet:rollType="x"
    sweet:fromDeg="100"
    sweet:toDeg="0"
    sweet:pivotX="50%"
    sweet:pivotY="50%"
    android:duration="400"/>-->

@fanyufan
Copy link

check this fork https://github.com/F0RIS/sweet-alert-dialog

work for me.

@ChristophyBarth
Copy link

F0RIS fork worked! But @rajesh-karmaker's answer looks interesting too!

@ChristophyBarth
Copy link

But @F0RIS, The buttons of the dialog are being cut off.

@mohkhz2001
Copy link

@F0RIS
this worked for me
thank you

@manuelduarte077
Copy link

Solución simple:

  1. Cree una carpeta "anim" en la carpeta "res"
  2. Cree un archivo xml en la carpeta "anim" y el nombre xml debe ser "error_frame_in.xml"
  3. luego pega este código
<alpha
    android:fromAlpha="0"
    android:toAlpha="1"
    android:duration="400"/>


<!--<sweet:cn.pedant.SweetAlert.Rotate3dAnimation
    sweet:rollType="x"
    sweet:fromDeg="100"
    sweet:toDeg="0"
    sweet:pivotX="50%"
    sweet:pivotY="50%"
    android:duration="400"/>-->

@vsalguero

@rezaulkhan111
Copy link

rezaulkhan111 commented Nov 29, 2022

when app publishes as release mode. inside the 'OptAnimationLoader' class> 'createAnimationFromXml' method> default case ' throw RuntimeException'. I just replace RuntimeException with a break. (library tries to dynamically choose the constructor).
https://github.com/rezaulkhan111/sweet-alert-dialog

@rezaulkhan111
Copy link

158538499-9c591671-1332-4c35-9ad9-60c99b3a662a

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

9 participants