Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mengtrue opened this issue Jul 25, 2018 · 1 comment

Comments

@mengtrue
Copy link

  • [√] I have verified there are no duplicate active or recent bugs, questions, or requests.
  • [√] I have verified that I am using the latest version of MaterialStyledDialogs.
  • [√] I have given my issue a non-generic title.
  • [√] I have read over the README and Wiki (before asking questions on how to do something).
Details
  • MaterialStyledDialogs version: 2.1
  • Device OS version: 8.0
  • Device Manufacturer: OnePlus
  • Device Name: OnePlus A3000
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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant