- 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.
推薦閱讀
- Raspberry Pi for Secret Agents(Third Edition)
- 數據結構與算法JavaScript描述
- Instant 960 Grid System
- 名師講壇:Java微服務架構實戰(SpringBoot+SpringCloud+Docker+RabbitMQ)
- 網絡爬蟲原理與實踐:基于C#語言
- Machine Learning in Java
- 從零開始:UI圖標設計與制作(第3版)
- CRYENGINE Game Development Blueprints
- Arduino計算機視覺編程
- RocketMQ實戰與原理解析
- 算法圖解
- Java 9 with JShell
- C/C++代碼調試的藝術(第2版)
- Learning Shiny
- Visual Basic語言程序設計上機指導與練習(第3版)