i have problem accessing resource , native library jar library , created library project.i have build library project.and after building project library , try create jar file project library. after put .jar
file in libs
folder in main working applciation.project throw error console
the library 'xyz.jar' contains native libraries not run on device. following libraries found: libs/armeabi/libxyz.so
after changing in eclipse project able run throw
02-19 15:40:13.467: e/androidruntime(27766): fatal exception: main 02-19 15:40:13.467: e/androidruntime(27766): android.content.res.resources$notfoundexception: resource id #0x0 02-19 15:40:13.467: e/androidruntime(27766): @ android.content.res.resources.getvalue(resources.java:1033) 02-19 15:40:13.467: e/androidruntime(27766): @ android.content.res.resources.loadxmlresourceparser(resources.java:2179) 02-19 15:40:13.467: e/androidruntime(27766): @ android.content.res.resources.getlayout(resources.java:872) 02-19 15:40:13.467: e/androidruntime(27766): @ android.view.layoutinflater.inflate(layoutinflater.java:394) 02-19 15:40:13.467: e/androidruntime(27766): @ android.view.layoutinflater.inflate(layoutinflater.java:352) 02-19 15:40:13.467: e/androidruntime(27766): @ com.android.internal.policy.impl.phonewindow.setcontentview(phonewindow.java:274) 02-19 15:40:13.467: e/androidruntime(27766): @ android.app.dialog.setcontentview(dialog.java:471) 02-19 15:40:13.467: e/androidruntime(27766): @ com.example.inappcarrierbilling.customdailog.directbillingdialog.oncreate(directbillingdialog.java:46) 02-19 15:40:13.467: e/androidruntime(27766): @ android.app.dialog.dispatchoncreate(dialog.java:355) 02-19 15:40:13.467: e/androidruntime(27766): @ android.app.dialog.show(dialog.java:260) 02-19 15:40:13.467: e/androidruntime(27766): @ com.example.inappcarrierbilling.objects.billingparams$2.onpostexecute(billingparams.java:318) 02-19 15:40:13.467: e/androidruntime(27766): @ com.example.inappcarrierbilling.objects.billingparams$2.onpostexecute(billingparams.java:1) 02-19 15:40:13.467: e/androidruntime(27766): @ android.os.asynctask.finish(asynctask.java:631) 02-19 15:40:13.467: e/androidruntime(27766): @ android.os.asynctask.access$600(asynctask.java:177) 02-19 15:40:13.467: e/androidruntime(27766): @ android.os.asynctask$internalhandler.handlemessage(asynctask.java:644) 02-19 15:40:13.467: e/androidruntime(27766): @ android.os.handler.dispatchmessage(handler.java:99) 02-19 15:40:13.467: e/androidruntime(27766): @ android.os.looper.loop(looper.java:153) 02-19 15:40:13.467: e/androidruntime(27766): @ android.app.activitythread.main(activitythread.java:5297) 02-19 15:40:13.467: e/androidruntime(27766): @ java.lang.reflect.method.invokenative(native method) 02-19 15:40:13.467: e/androidruntime(27766): @ java.lang.reflect.method.invoke(method.java:511) 02-19 15:40:13.467: e/androidruntime(27766): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:833) 02-19 15:40:13.467: e/androidruntime(27766): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:600) 02-19 15:40:13.467: e/androidruntime(27766): @ dalvik.system.nativestart.main(native method)
i have put native lib (.so file) in libs folder of library project ,to access native function , resources in res
folder in library project. when access project through building jar file, not loading res
folder libs folder jar file, cannot access native .so library
how can use jar file contain resourse , native lib?
please me, in advance
if use android studio, should add path: app/src/main/jnilibs/armeabi not in libs folder