noclassdeffounderror - Could not find class/NoClassDefFound error on Android running 4.3/ pre L -


i have android application seems run fine on android l+ devices. however, when try run pre l devices, seem exception on could not find class or noclassdeffounderror , these classes seem different project on project dependent upon.

i tried java.lang.noclassdeffounderror on android devices kitkat , noclassdeffounderror in 4.4 kitkat not in 5.0 lollipop - not find class , recommended me disable multidex in build.gradle, did not find issue , started getting transformclasseswithdexfordebug errors listed @ unexpected top-level exception: com.android.dex.dexexception: multiple dex files define, recommended me turn multidex enabled.

here sample stacktrace of errror:

01-28 17:09:21.214 15125-15125/<app> i/dalvikvm: not find method <xxx>, referenced method <yyy>.findzygotepid 01-28 17:09:21.190 15125-15125/<app> e/dalvikvm: not find class '<zzz>', referenced method <aaa>.broadcast 01-28 17:09:21.229 15125-15125/<aaa> e/androidruntime: fatal exception: main java.lang.noclassdeffounderror: <method dependent project's class>

both main android project , dependent module have multidex enabled , dependencies set compile com.android.support:multidex:1.0.0. can please provide inputs on how go fixing exception being thrown on pre l devices? inputs appreciated.

i tried clean build , rebuild of project, doesn't me. thanks.

update: sample code

class dummy {  dummy(<params>) {         initialize variables;     }  } 

and being invoked new dummy(<params>), throws exception of noclassdeffound package_name.dummy

fixed above problem, making base activity extend multidexapplication (not application) , application not crash now. also, modified build.gradle , androidmanifest.xml set minsdkversion 18.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -