How to get breakpoint in NDK native code and debug native code in Android Studio?

前端 未结 5 1998
野趣味
野趣味 2020-12-15 05:55

I am developing android app using NDK. I have two projects. One is for my native library which uses NDK and generates .so file.

I am using Android Studio but disabli

5条回答
  •  眼角桃花
    2020-12-15 06:02

    Another check point if breakpoints in native codes don't work:

    • remove android:extractNativeLibs="false" line or set it true in AndroidManifest.xml

    extractNativeLibs="false" causes 1 or 2, occasionally.

    1. Install will fail with message "INSTALL_FAILED_INVALID_APK"
    2. Breakpoints in native codes don't work

提交回复
热议问题