Android Studio:JNI DETECTED ERROR IN APPLICATION: native code passing in reference to invalid local reference: 0x200001 -


i have tried integrate ndk in app. using eclipse , good, switched android studio , native crash :

jni detected error in application: native code passing in reference invalid local reference: 0x200001 

build.gradle

apply plugin: 'com.android.application'   android {    compilesdkversion 19    buildtoolsversion "22.0.1"   defaultconfig {     applicationid "com.example.app"     minsdkversion 17     targetsdkversion 19     sourcesets.main {         jni.srcdirs = []         jnilibs.srcdir 'src/main/libs'     }   }  buildtypes {     release {         minifyenabled false         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt'     }   } }  dependencies {   compile files('libs/flurryanalytics-5.3.0.jar')   compile files('libs/jericho-html-3.3.jar')   compile files('libs/smack.jar')   compile 'com.android.support:support-v4:22.1.0'   compile 'com.facebook.android:facebook-android-sdk:4.1.2'   compile 'com.melnykov:floatingactionbutton:1.3.0'   compile 'com.google.android.gms:play-services:7.3.0'   compile 'com.android.support:appcompat-v7:22.1.0' } 

i have generated files files android studio , have copied files eclipse , put in libs folder.nothing helpful.

this library i'm trying integrate [vorbis][1]..

i found using tombstones helpful when debugging native applications.

every time process crashes under android, tombstone file created in /data/tombstones directory. contains important information crash.

you can read more tombstones here

in case tombstone file contained backtrace make clear problem deletelocalref function. found accidentally called twice on same reference.

backtrace:     #00 pc 00038094  /system/lib/libc.so (tgkill+12)     #01 pc 00014261  /system/lib/libc.so (pthread_kill+52)     #02 pc 00014e7f  /system/lib/libc.so (raise+10)     #03 pc 000116d5  /system/lib/libc.so (__libc_android_abort+36)     #04 pc 0000fc1c  /system/lib/libc.so (abort+4)     #05 pc 00214ded  /system/lib/libart.so (art::runtime::abort()+160)     #06 pc 000a63d3  /system/lib/libart.so (art::logmessage::~logmessage()+1322)     #07 pc 000afb71  /system/lib/libart.so (art::jniabort(char const*, char const*)+1060)     #08 pc 000b00cd  /system/lib/libart.so (art::jniabortf(char const*, char const*, ...)+60)     #09 pc 000b2455  /system/lib/libart.so (_zn3art11scopedcheck5checkebpkcz.constprop.128+672)     #10 pc 000b4fef  /system/lib/libart.so (art::checkjni::deletelocalref(_jnienv*, _jobject*)+54)     #11 pc 0007b110  /data/app/com.myapp/lib/arm/mynativelib.so (cmynativeclass::copy(_jnienv*, cmynativeclass const&)+2812)  

Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -