gpt4 book ai didi

android - 更新Android Studio 3.0和Gradle版本4.1后发生SweetAlertDialog错误

转载 作者:行者123 更新时间:2023-12-03 04:48:20 33 4
gpt4 key购买 nike

更新之后,我的应用程序没有出现任何错误,但是当我打开仿真器时,我找不到SweetAlertDialog库。 Debug模式而不是发布apk,这次我在仿真器上尝试了它并且没有给出错误。我不明白为什么在 Debug模式下会出现错误。

FATAL EXCEPTION: main
Process: com.dinlenet, PID: 7427
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dinlenet/com.dinlenet.activitys.PermissionActivity}: java.lang.RuntimeException: Unknown animation name: cn.pedant.SweetAlert.Rotate3dAnimation error:null
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Caused by: 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.<init>(SweetAlertDialog.java:80)
at com.dinlenet.utils.DialogUtil.showSweetAlertDialogWithListener(DialogUtil.java:27)
at com.dinlenet.utils.RuntimePermissionsActivity.onCreate(RuntimePermissionsActivity.java:30)
at com.dinlenet.activitys.PermissionActivity.onCreate(PermissionActivity.java:25)
at android.app.Activity.performCreate(Activity.java:6975)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) 
at android.app.ActivityThread.-wrap11(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593) 
at android.os.Handler.dispatchMessage(Handler.java:105) 
at android.os.Looper.loop(Looper.java:164) 
at android.app.ActivityThread.main(ActivityThread.java:6541) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) 

10-29 08:30:49.083 7427-7427 / com.dinlenet E / CrashlyticsCore:无法执行任务。

最佳答案

添加此库只是新增功能https://jitpack.io/p/Leogiroux/sweet-alert-dialog是相同的

关于android - 更新Android Studio 3.0和Gradle版本4.1后发生SweetAlertDialog错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46998305/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com