Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Overview  





2 References  














Android NDK






Русский

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


Android NDK
Developer(s)Google
Initial releaseJune 2009; 15 years ago (2009-06)[1]
Stable release

r26c[2] Edit this on Wikidata / 12 February 2024; 5 months ago (12 February 2024)

Repository
Written inC and C++
Operating system
  • OS X 10.10 and later
  • Linux
  • PlatformIA-32 (Windows only) or x86-64 (Windows,[3] macOS and Linux)
    Available inEnglish
    TypeSDK
    Websitedeveloper.android.com/ndk/

    The Android Native Development Kit (NDK) provides a cross-compiling tool for compiling code written in C/C++ can be compiledtoARM, or x86 native code (or their 64-bit variants) for Android.[4][5] The NDK uses the Clang compiler to compile C/C++. GCC was included until NDK r17, but removed in r18 in 2018.

    Overview

    [edit]

    Native libraries can be called from Java code running under the Android Runtime using System.loadLibrary, part of the standard Android Java classes.[6][7]

    Command-line tools can be compiled with the NDK and installed using adb.[8]

    Android uses Bionic as its C library, and the LLVM libc++ as its C++ Standard Library. The NDK also includes a variety of other APIs:[9] zlib compression, OpenGL ESorVulkan graphics, OpenSL ES audio, and various Android-specific APIs for things like logging, access to cameras, or accelerating neural networks.

    The NDK includes support for CMake and its own ndk-build (based on GNU Make). Android Studio supports running either of these from Gradle. Other third-party tools allow integrating the NDK into Eclipse[10] and Visual Studio.[11]

    For CPU profiling, the NDK also includes simpleperf[12] which is similar to the Linux perf tool, but with better support for Android and specifically for mixed Java/C++ stacks.

    References

    [edit]
    1. ^ "Android NDK | Android Developers". Developer.android.com. November 13, 2012. Retrieved March 13, 2014.
  • ^ "Release NDK r26c · android/ndk". Retrieved 31 March 2024.
  • ^ "NDK Downloads | Android Developers". developer.android.com. Retrieved 2018-04-24.
  • ^ Ratabouil, Sylvain (2015). Android NDK beginner's guide : discover the native side of Android and inject the power of C/C++ in your applications (2nd ed.). Birmingham. ISBN 978-1-78398-965-2. OCLC 910639612.{{cite book}}: CS1 maint: location missing publisher (link)
  • ^ Kosarevsky, Sergey (2013). Android NDK game development cookbook : over 70 exciting recipes to help you develop mobile games for Android in C++. Viktor Latypov. Birmingham. ISBN 978-1-78216-779-2. OCLC 880639342.{{cite book}}: CS1 maint: location missing publisher (link)
  • ^ Srinivas, Davanum (December 9, 2007). "Android — Invoke JNI based methods (Bridging C/C++ and Java)". Archived from the original on December 16, 2008. Retrieved December 13, 2008.
  • ^ "java.lang.System". Android Developers. Retrieved September 3, 2009.
  • ^ "Android Debug Bridge (adb)".
  • ^ "Android NDK Native APIs | Android NDK".
  • ^ "Using Eclipse for Android C/C++ Development". January 23, 2011.
  • ^ "Using Visual Studio to Develop Native Android Code – VisualGDB Tutorials".
  • ^ "Simpleperf | Android NDK".

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Android_NDK&oldid=1235213125"

    Categories: 
    Software development kits
    Android (operating system) development software
    Hidden category: 
    CS1 maint: location missing publisher
     



    This page was last edited on 18 July 2024, at 05:57 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki