jni - Cannot add .so lib in Android Studio -


this error get:

08-08 12:05:37.198 3680-3680/? e/androidruntime: fatal exception: main                                              process: com.vidyo.vidyoclient, pid: 3680                                              java.lang.unsatisfiedlinkerror: dalvik.system.pathclassloader[dexpathlist[[zip file "/data/app/com.vidyo.vidyoclient-1/base.apk"],nativelibrarydirectories=[/data/app/com.vidyo.vidyoclient-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libvidyoclientapp.so"                                                  @ java.lang.runtime.loadlibrary(runtime.java:367)                                                  @ java.lang.system.loadlibrary(system.java:1076)                                                  @ com.vidyo.vidyoclientlib.lmiandroidappjni.<clinit>(lmiandroidappjni.java:692)                                                  @ java.lang.class.newinstance(native method)                                                  @ android.app.instrumentation.newapplication(instrumentation.java:996)                                                  @ android.app.instrumentation.newapplication(instrumentation.java:981)                                                  @ android.app.loadedapk.makeapplication(loadedapk.java:573)                                                  @ android.app.activitythread.handlebindapplication(activitythread.java:4680)                                                  @ android.app.activitythread.-wrap1(activitythread.java)                                                  @ android.app.activitythread$h.handlemessage(activitythread.java:1405)                                                  @ android.os.handler.dispatchmessage(handler.java:102)                                                  @ android.os.looper.loop(looper.java:148)                                                  @ android.app.activitythread.main(activitythread.java:5417)                                                  @ java.lang.reflect.method.invoke(native method)                                                  @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:726)                                                  @ com.android.internal.os.zygoteinit.main(zygoteinit.java:616) 

this how build.gradle looks like:

 apply plugin: 'com.android.application'  android { compilesdkversion 19 buildtoolsversion "22.0.1"  defaultconfig {     applicationid "com.vidyo.vidyoclient"     minsdkversion 11     targetsdkversion 19     ndkconfig.abifilters "armeabi-v7a" }  sourcesets {     main {         manifest.srcfile 'androidmanifest.xml'         java.srcdirs = ['src']         resources.srcdirs = ['src']         res.srcdirs = ['res']         jni.srcdirs = []         jnilibs.srcdirs = ['libs']     } }  buildtypes {     release {         minifyenabled false         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt'     } }  packagingoptions {     exclude 'meta-inf/license.txt'     exclude 'meta-inf/notice.txt'     exclude 'meta-inf/license'     exclude 'meta-inf/notice' }  }  dependencies { compile project(':libraries:drag-sort-listview:library') compile project(':libraries:boxandroidlibraryv2') compile 'com.android.support:support-v4:19.1.0' compile 'com.google.android.gms:play-services-base:7.3.0'  compile 'com.google.api-client:google-api-client:1.20.0' compile 'com.google.api-client:google-api-client-android:1.20.0' compile 'com.google.apis:google-api-services-drive:v2-rev165-1.20.0' compile 'com.google.http-client:google-http-client:1.20.0' compile 'com.google.http-client:google-http-client-gson:1.20.0'   compile files('libs/dropbox-android-sdk-1.6.1.jar') } 

and structure of project. https://s3.amazonaws.com/uploads.hipchat.com/39260/829560/lbv9tva4gg0fiif/upload.png

i tried setting: jnilibs.srcdirs = ['libs'] jnilibs.srcdirs = ['jni/lib'] same error. missing? need declare/run else?

i build .so library again, jni, , worked after that


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -