Debugging native code in android under eclipse fails

后端 未结 3 912
孤街浪徒
孤街浪徒 2021-01-17 10:07

I\'m trying to debug the native code in the \"csipsimple\" android app using the Debug As->Android Native Application option. I used this tutorial to do it.

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-17 10:43

    After getting this to work, and then re-creating my app to see what works, I have found the following:

    in the AndroidManifest.xml, you have to set min/target SDK version to match that of your phone.

    [jc@jc-u13:anotherJniDebugTest]$ adb shell getprop|grep build.version
    [ro.build.version.codename]: [REL]
    [ro.build.version.incremental]: [5c6c6b0b1b]
    [ro.build.version.release]: [4.3.1]
    **[ro.build.version.sdk]: [18]**
    

    therefore, my manifest versions had to be 18. If i had my version set to 17, i would get the above error

提交回复
热议问题