- Android Development with Kotlin
- Marcin Moskala Igor Wojda
- 151字
- 2021-07-02 18:48:33
Kotlin under the hood
We will focus mainly on Android, but keep in mind that Kotlin can be compiled to multiple platforms. Kotlin code can be compiled to Java bytecode and then to Dalvik bytecode. Here is the simplified version of the Kotlin build process for the Android platform:
- A file with a .java extension contains Java code
- A file with a .kt extension contains Kotlin code
- A file with a .class extension contains Java bytecode
- A file with a .dex extension contains Dalvik bytecode
- A file with a .apk extension contains the AndroidManifest file, resources, and .dex file
For pure Kotlin projects, only the Kotlin compiler will be used, but Kotlin also supports cross-language projects, where we can use Kotlin together with Java in the same Android project. In such cases, both compilers are used to compile the Android application and the result will be merged at the class level.
推薦閱讀
- 基于粒計算模型的圖像處理
- 架構不再難(全5冊)
- 軟件測試工程師面試秘籍
- Learning AWS Lumberyard Game Development
- React.js Essentials
- Practical Windows Forensics
- Angular開發入門與實戰
- Vue.js 2 Web Development Projects
- Essential C++(中文版)
- 軟件工程基礎與實訓教程
- Building Business Websites with Squarespace 7(Second Edition)
- jQuery從入門到精通(微課精編版)
- INSTANT JQuery Flot Visual Data Analysis
- 現代CPU性能分析與優化
- Vue.js 3.x高效前端開發(視頻教學版)