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 #184

Open Mateeen opened 6 years ago

Mateeen commented 6 years ago

rocess: production.kado.lock, PID: 22429 java.lang.RuntimeException: Unknown animation name: cn.pedant.SweetAlert.Rotate3dAnimation error:null at cn.pedant.SweetAlert.OptAnimationLoader.createAnimationFromXml(OptAnimationLoader.java:77) at cn.pedant.SweetAlert.OptAnimationLoader.createAnimationFromXml(OptAnimationLoader.java:64) at cn.pedant.SweetAlert.OptAnimationLoader.createAnimationFromXml(OptAnimationLoader.java:41) at cn.pedant.SweetAlert.OptAnimationLoader.loadAnimation(OptAnimationLoader.java:22) at cn.pedant.SweetAlert.SweetAlertDialog.(SweetAlertDialog.java:80) at production.kado.lock.fragments.SelectLockTypeFragment.setupFingerprint(SelectLockTypeFragment.java:179) at production.kado.lock.fragments.SelectLockTypeFragment.onClick(SelectLockTypeFragment.java:156) at android.view.View.performClick(View.java:5217) at android.view.View$PerformClick.run(View.java:21342) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5551) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)

why are you using reflection?

Anandsoni14 commented 6 years ago

I also got same issue.

HelloNick666 commented 6 years ago

I also got same issue.

WilsonKifua commented 6 years ago

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

javyhoo commented 6 years ago

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

ellie-me commented 6 years ago

same issue here :( trying to solve the problem at the moment

leruyn commented 6 years ago

you can fix in anim/error_frame_in.xml: <app:.Rotate3dAnimation app:rollType="x" app:fromDeg="100" app:toDeg="0" app:pivotX="50%" app:pivotY="50%" android:duration="400"/>

fivedofficial commented 6 years ago

leruyn where to use this?

rsneena commented 6 years ago

I am also facing the same issue. Is there any solution for this? This issue occurs in release apk, and in debug apk its working fine.

Fatal Exception: java.lang.RuntimeException Unknown animation name: cn.pedant.SweetAlert.Rotate3dAnimation error:cn.pedant.SweetAlert.Rotate3dAnimation cn.pedant.SweetAlert.OptAnimationLoader.loadAnimation cn.pedant.SweetAlert.OptAnimationLoader.loadAnimation (Unknown Source)

This is the issue that i got from fabric crashlytics

jmimohsin commented 6 years ago

same issue.

leruyn commented 6 years ago

@nonoman62 you can fix it in anim/error_frame_in.xml

cristianmgb commented 6 years ago

implementation 'com.github.f0ris.sweetalert:library:1.5.1' try this, is the same library

superancun commented 5 years ago

just do it -keep class cn.pedant.SweetAlert.Rotate3dAnimation { public \<init>(...); }

moonlight2012 commented 5 years ago

implementation 'com.github.f0ris.sweetalert:library:1.5.1' try this, is the same library

good .

Joinfeng commented 5 years ago

You can try: <app:.Rotate3dAnimation app:rollType="x" app:fromDeg="100" app:toDeg="0" app:pivotX="50%" app:pivotY="50%" android:duration="400"/>

有用