How to resolve java.lang.NoClassDefFoundError in android? -
i included import.io jar android project, tried run example , got following:
fatal exception: main java.lang.noclassdeffounderror: com.importio.api.clientlite.json.jacksonjsonimplementation$1 @ com.importio.api.clientlite.json.jacksonjsonimplementation.<init>(jacksonjsonimplementation.java:17) @ com.importio.api.clientlite.importio.connect(importio.java:235) @ com.gomel.data.importiotest.showandgetdata(importiotest.java:33) @ com.gomel.activities.detailedarticleactivity$1.onclick(detailedarticleactivity.java:40) @ android.view.view.performclick(view.java:4247) @ android.view.view$performclick.run(view.java:17733) @ android.os.handler.handlecallback(handler.java:730) @ android.os.handler.dispatchmessage(handler.java:92) @ android.os.looper.loop(looper.java:137) @ android.app.activitythread.main(activitythread.java:5289) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:525) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:739) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:555) @ dalvik.system.nativestart.main(native method)
i did google , decided wrong jackson library, had added it, nothing changed. there lot of different solutions error here, cant resolve in case. give me advice, please?
i use android studio android sdk tools v22.3 have tried run project in eclipse (with jar obviously) , got same error.
upd
my build.gradle
apply plugin: 'android' android { compilesdkversion 18 buildtoolsversion '19.0.1' defaultconfig { minsdkversion 14 targetsdkversion 18 versioncode 1 versionname "1.0" } buildtypes { release { runproguard false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile 'com.android.support:support-v4:18.0.0' compile files('lib/com.importio.api.clientlite-1.0.2.jar') compile files('lib/jackson-core-asl-1.9.12.jar') }
i added file dependencies, think right option. there no compile error while don't use methods. , of course jars in lib
folder.
required jar jackson-core-asl-1.9.12.jar
missing have download jar , set classpath
.
Comments
Post a Comment