[ 
https://issues.jenkins-ci.org/browse/JENKINS-13107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160940#comment-160940
 ] 

Amy Winarske commented on JENKINS-13107:
----------------------------------------

You'd only want the NDK if required.  It's easy to detect - you look for the 
jni subdirectory in your Android project directory and see whether it contains 
an Android.mk file.

The NDK is used to create a jar file that is then used in the regular Android 
SDK build, so the NDK build is just a step that comes before the rest of the 
usual Android build.

See http://developer.android.com/sdk/ndk/index.html.

In the event that Google changes their doc without notice, here's the info 
directly from today's NDK Getting Started:
Getting Started with the NDK

Once you've installed the NDK successfully, take a few minutes to read the 
documentation included in the NDK. You can find the documentation in the 
<ndk>/docs/ directory. In particular, please read the OVERVIEW.HTML document 
completely, so that you understand the intent of the NDK and how to use it.

If you used a previous version of the NDK, take a moment to review the list of 
NDK changes in the CHANGES.HTML document.

Here's the general outline of how you work with the NDK tools:

    Place your native sources under <project>/jni/...
    Create <project>/jni/Android.mk to describe your native sources to the NDK 
build system
    Optional: Create <project>/jni/Application.mk.
    Build your native code by running the 'ndk-build' script from your 
project's directory. It is located in the top-level NDK directory:

    cd <project>
    <ndk>/ndk-build

    The build tools copy the stripped, shared libraries needed by your 
application to the proper location in the application's project directory.
    Finally, compile your application using the SDK tools in the usual way. The 
SDK build tools will package the shared libraries in the application's 
deployable .apk file.

For complete information on all of the steps listed above, please see the 
documentation included with the NDK package.
                
> Android NDK support not present for auto-dependency download
> ------------------------------------------------------------
>
>                 Key: JENKINS-13107
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13107
>             Project: Jenkins
>          Issue Type: New Feature
>          Components: android-emulator
>    Affects Versions: current
>            Reporter: Amy Winarske
>            Assignee: Christopher Orr
>
> The dependency download is very nice, but doesn't include the NDK, only the 
> SDK.  NDK support would be a big help.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to