javiersantos / MaterialStyledDialogs

A library that shows a beautiful and customizable Material-based dialog with header. API 14+ required.
Apache License 2.0
1.17k stars 155 forks source link

java.lang.NoSuchFieldError: No static field MD_Dark of type I in class Lcom/github/javiersantos/materialstyleddialogs/R$styl #70

Open mengtrue opened 6 years ago

mengtrue commented 6 years ago
Details
Reproduction Steps

1.add this library in my app project 2.add code for MaterialStyledDialog 3.show the dialog

Expected Result

APP crash the log is 07-25 10:28:06.238 E 16352 16352 AndroidRuntime: java.lang.NoSuchFieldError: No static field MD_Dark of type I in class Lcom/github/javiersantos/materialstyleddialogs/R$style; or its superclasses (declaration of com.github.javiersantos.materialstyleddialogs.R$style appears in /data/app/com.gtk.smartmanagement-WV22AVku43YBXFAZ3rCTbQ==/split_lib_slice_2_apk.apk) 07-25 10:28:06.238 E 16352 16352 AndroidRuntime: at com.github.javiersantos.materialstyleddialogs.MaterialStyledDialog.(MaterialStyledDialog.java:37) 07-25 10:28:06.238 E 16352 16352 AndroidRuntime: at com.github.javiersantos.materialstyleddialogs.MaterialStyledDialog$Builder.build(MaterialStyledDialog.java:457) 07-25 10:28:06.238 E 16352 16352 AndroidRuntime: at com.github.javiersantos.materialstyleddialogs.MaterialStyledDialog$Builder.show(MaterialStyledDialog.java:462)

Actual Result

The dialog shoule be showed normal.

mengtrue commented 6 years ago

After check source code, add implementation 'com.afollestad.material-dialogs:core:0.9.6.0' it can work. Maybe you can add this on README