Breakpoints in native code can not be triggered in

2019-05-31 09:24发布

问题:

Following the Android NDK Preview document, I install android-ndk-10e and experimental gradle plugin ,import the Teapot sample project then set the "Android Native".

Things seem works fine except that the breakpoints in native code can not be triggered. Have tested on OS X Yosemite and Windows 7, both failed.

Here is a post says doing some changes to gradle file, but not working for me.

回答1:

You need to create a separate "Android Native" Run configuration: Run > Edit Configurations > + > Android Native