-1

OS: Windows8 x64

Eclipse: ADT バンドル フォームhttp://developer.android.com/sdk/index.html

NDK: http://developer.android.com/sdk/index.htmlの Windows 64 用 NDK8e 。

Windows/Preference/Android/NDK を正しい NDK パスに設定します。

私がやること:

  • %Android-NDK%/samples から hello-jni サンプルを Eclipse にインポートします。

  • AndroidManifext.xml の変更

    <uses-sdk android:minSdkVersion="3" /> to <uses-sdkandroid:minSdkVersion="17" />

  • ネイティブ サポートを追加

    プロジェクトを右クリックし、Android Tools/Add Native Support をクリックします。

  • デバッグをオンにする

    プロジェクトを右クリックし、Properties/"C/C++ build"/Build Settings で Build コマンドを "ndk-build NDK_DEBUG=1" に変更します。

  • C コードにブレークポイントを設定します。

  • As/Android ネイティブ アプリケーションをデバッグします。

私はこれを2台のコンピューターで行う必要があります。しかし、2つのエラーメッセージがあります。

1つは次のようなものです:

[2013-06-12 00:03:09 - HelloJni] Unknown Application ABI:

[2013-06-12 00:03:09 - HelloJni] [2013-06-12 00:03:09 - HelloJni] Unable to detect application ABI's

その他は次のようになります。

warning: Could not load shared library symbols for 73 libraries, e.g. /system/binnker.

Use the "info sharedlibrary" command to see the complete listing.

Do you need "set solib-search-path" or "set sysroot"?

warning: Unable to find dynamic linker breakpoint function.

GDB will retry eventurally.  Meanwhile, it is likely

that GDB is unable to debug shared library initializers

or resolve pending breakpoints after dlopen(). 
4

1 に答える 1