Android Studio 1.3 - can't debug native -


i using latest canary channel, , ndk goes it. modified android project suit, , app (including jni) builds , runs properly.

i have not (yet) allowed tools automatically handle building jni part. lots of special sauce in existing makefiles, lot of work. don't have android.ndk section in build file. have single gradle.build file.

my debug build type looks this:

android.buildtypes {     debug {         isminifyenabled = false         proguardfiles += file('proguard-rules.txt')         isdebuggable = true         isjnidebuggable = true     } } 

i added native run configuration. when try debug it, exception lldb server not found.

if switch gdb, different exception. thoughts?

a couple of jni samples teapot , hello-jni working fine.

here lldb exception:

lldb server not found java.lang.throwable     @ com.intellij.openapi.diagnostic.logger.error(logger.java:115)     @ com.android.tools.ndk.run.lldb.androidlldbdebuggercontext.launchlldbserver(androidlldbdebuggercontext.java:66)     @ com.android.tools.ndk.run.lldb.androidlldbdebuggercontext.startserver(androidlldbdebuggercontext.java:55)     @ com.android.tools.ndk.run.androidnativedebugrunner$nativedebuglauncher.launchdebug(androidnativedebugrunner.java:109)     @ org.jetbrains.android.run.androidrunningstate.launchdebug(androidrunningstate.java:835)     @ org.jetbrains.android.run.androidrunningstate.clientchanged(androidrunningstate.java:814)     @ com.android.ddmlib.androiddebugbridge.clientchanged(androiddebugbridge.java:879)     @ com.android.ddmlib.device.update(device.java:721)     @ com.android.ddmlib.client.update(client.java:938)     @ com.android.ddmlib.handleappname.handleapnm(handleappname.java:112)     @ com.android.ddmlib.handleappname.handlechunk(handleappname.java:65)     @ com.android.ddmlib.monitorthread.callhandler(monitorthread.java:414)     @ com.android.ddmlib.monitorthread.processclientactivity(monitorthread.java:322)     @ com.android.ddmlib.monitorthread.run(monitorthread.java:263) 

i'm afraid need compile c++ codes gradle not makefile. lldb server generated gradle automatically. android studio didn't support other external build systems(e.g. makefile) yet.


Comments