android.buildTypes {
debug {
isJniDebuggable = true
}
}
Then when your native configuration is selected, clicking the debug button should fire up the app, and show a "native debug" view with a console. For me it takes around 10 seconds until the console indicates that the debugger has successfully connected. From that point on, native breakpoints work for me. If the crash is early on in your app you may want to add a sleep in onCreate to give the debugger time to connect.
I've also managed to get breakpoints on both Java side and native side working - details here:
https://groups.google.com/forum/#!topic/adt-dev/egn8UScwQXQ
Hope that helps!
Simon
android.ndk {
abiFilters = ["armeabi"]
}
Now I really am done with ideas!
Simon
There is an outstanding issue with the 1.3 release that prevent breakpoint to be hit during the startup of the application.
I believe this is already fixed with the studio-1.4-dev branch.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-ndk.
For more options, visit https://groups.google.com/d/optout.