在 Android Studio 13 中无法触发本机代码中的断点
Breakpoints in native code can not be triggered in Android Studio 13
按照 Android NDK Preview document, I install android-ndk-10e and experimental gradle plugin ,import the Teapot 示例项目然后设置 "Android Native"。
除了无法触发本机代码中的断点外,一切似乎都很好。在 OS X Yosemite 和 Windows 7 上测试过,都失败了。
这里有一个 post 说要对 gradle 文件做一些更改,但对我不起作用。
您需要创建单独的 "Android Native" 运行 配置:
Run > Edit Configurations > + > Android Native
按照 Android NDK Preview document, I install android-ndk-10e and experimental gradle plugin ,import the Teapot 示例项目然后设置 "Android Native"。
除了无法触发本机代码中的断点外,一切似乎都很好。在 OS X Yosemite 和 Windows 7 上测试过,都失败了。
这里有一个 post 说要对 gradle 文件做一些更改,但对我不起作用。
您需要创建单独的 "Android Native" 运行 配置:
Run > Edit Configurations > + > Android Native