gpt4 book ai didi

android studio 3.0 错误与 sweet-alert-dialog 库

转载 作者:太空宇宙 更新时间:2023-11-03 11:28:38 26 4
gpt4 key购买 nike

单击以显示对话框时发生此错误

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

有人一步步解决吗?

最佳答案

将这个库添加到app/build.gradle:

dependencies {
...
implementation 'com.github.f0ris.sweetalert:library:1.5.1'
}

用法:

SweetAlertDialog pDialog = new SweetAlertDialog(this, SweetAlertDialog.PROGRESS_TYPE);
pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86"));
pDialog.setTitleText("Loading");
pDialog.setCancelable(false);
pDialog.show();

有关进度的更多用法,请阅读 THIS .

关于android studio 3.0 错误与 sweet-alert-dialog 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47195517/

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