Android studio 3.0 error with sweet-alert-dialog library
Add this library to app/build.gradle
:
dependencies {
...
implementation 'com.github.f0ris.sweetalert:library:1.5.1'
}
Usage:
SweetAlertDialog pDialog = new SweetAlertDialog(this, SweetAlertDialog.PROGRESS_TYPE);
pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86"));
pDialog.setTitleText("Loading");
pDialog.setCancelable(false);
pDialog.show();
for more usages about progress read THIS.
use this library is the same just with new features https://jitpack.io/p/Leogiroux/sweet-alert-dialog
I got the solution!
if you are using implementation 'cn.pedant.sweetalert:library:1.3'
library, just add the below line in your proguard-rules.pro
file.
-keep class cn.pedant.** { *; }