java - Android Glide library NoClassDefFoundError -
am using glide library wrongly? problem?
protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); imageview iv = (imageview) findviewbyid(r.id.imageview1); glide.with(this).load(r.drawable.salads_caesar_salad).into(iv); }
if code compiles fine it's highly have right dependencies on compile classpath. if use android studio/gradle it's possible proguard somehow strips glide class whatever reason, shouldn't because you're using it.
the above contradicition , fact logcat screenshot either of eclipse adt or android device monitor (monitor.bat
) leaves 1 option: you didn't export dependency; try following (see screenshot in linked manual):
- right click android application project
- properties
- java build path
- order , export
- make sure
glide.jar
ticked
alternatively consider re-creating project in android studio (official google product android development) or intellij idea 14+ , copying sources over; intellij android plugin has better support android , modern build tools eclipse adt. against transition myself, see worked, because i'm advocating it. it's worth day or 2 effort in long run.
Comments
Post a Comment