使用Sweet Alert Dialog出現cn.pedant.SweetAlert.Rotate3dAnimation error:null錯誤解決方法

在Android Studio 3.X中使用Sweet Alert Dialog出現java.lang.RuntimeException: Unknown animation name: cn.pedant.SweetAlert.Rotate3dAnimation error:null錯誤java

在網上看了不少博客也說 使用 Sweet Alert Dialog遇到了相似的問題 , 解決方法千奇百怪 , 有的說是 下載lib 而後導入到工程裏 , git

有的說是 混淆 問題 , 其實解決辦法 很簡單 , 更改添加的依賴庫便可github

出錯的庫,註釋掉3d

implementation 'cn.pedant.sweetalert:library:1.3'

添加下面的庫code

implementation 'com.github.f0ris.sweetalert:library:1.5.1'

ok 再次運行, 問題解決xml

相關文章
相關標籤/搜索