Android NDK
/**
* 以 C/C++ 实现的原生方法
*/
external fun computeFoo()
}
最新资讯
Native Dependencies in Android Studio 4.0
Updated 2020年2月20日
One thing that NDK users struggle with is managing native dependencies: With version 4.0 of the Android Gradle Plugin, we’ve addressed these issues by adding support for distributing and exposing native libraries through the same mechanism that you
Android Game SDK
Updated 2019年12月5日
With over 2.5 billion monthly active devices, the Android Platform gives incredible reach for game developers. Taking advantage of that opportunity can be a challenge, particularly if your game really tries to push the limits of what mobile can do.
Introducing NDK r21: our first Long Term Support release
Updated 2019年10月17日
Android NDK r21 is now in beta! It’s been a longer than usual development cycle (four months since NDK r20), so there’s quite a lot to discuss for this release. We have the usual toolchain updates, improved defaults for better security and
优化您的原生代码
Simpleperf
Updated 2024年8月22日
Android Studio 包含 Simpleperf 的图形前端,记录在 使用 CPU 性能分析器检查 CPU 活动 中。大多数用户更喜欢使用该图形前端,而不是直接使用 Simpleperf。 如果您更喜欢使用命令行,可以直接使用 Simpleperf。Simpleperf 是一个通用的命令行 CPU 性能剖析工具,包含在面向 Mac、Linux 和 Windows 的 NDK 中。 如需查看完整的文档,请先阅读 Simpleperf 自述文件 。 如果您刚开始使用
Developing high performance games for Android (Google I/O '17)
Updated 2017年5月18日
Mobile games have better graphics and deeper gameplay than ever before. This means that developers need to optimize their games to get the best experience on each device to meet the expectations of their users. In this session, you will see how
How to manage native C++ memory in Android (Google I/O '17)
Updated 2017年5月17日
Android native applications typically use Java objects that "own" C++ objects. When the Java garbage collector detects that the Java object is no longer needed, the Java object either explicitly deallocates the C++ object, or decrements its reference