简体   繁体   English

为什么Android Studio(NDK)使用C++

[英]Why is C++ used in Android Studio (NDK)

I have a question that why is C++ used in Android App Development, What Requirements aren't Full filled by Java or Kotlin so C++ Came to Picture. I have a question that why is C++ used in Android App Development, What Requirements aren't Full filled by Java or Kotlin so C++ Came to Picture.

Android by itself is kind of linux system, where app is run by davlik virtual machine (and byte code for it is compiled form java / kotlin). Android 本身就是一种 linux 系统,其中应用程序由 davlik 虚拟机运行(并且它的字节码是从 java / kotlin 编译的) Sometimes there is a need to be closer to operation system and develop in native code - say in C/C++.有时需要更接近操作系统并使用本机代码进行开发 - 例如使用 C/C++。 NAtive parts of software have access to other APIs not available from davlik VM软件的本机部分可以访问 davlik VM 不提供的其他 API

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM