4

I've built an Android project with Kotlin support. I've used APK analyser on the resulting APK and noticed it contains a folder named kotlin/ outside classes.dex:

enter image description here

Looks like there are .class files inside the folder.

Anyone can explain what is the purpose of that folder? Shouldn't all bytecode be translated into .dex?

Marcelo Benites
  • 833
  • 8
  • 18

1 Answers1

1

Quoting from this answer,

These files contain data for declarations of standard ("built-in") Kotlin classes which are not compiled to .class files, but rather are mapped to the existing types on the platform (in this case, JVM). For example, kotlin/kotlin.kotlin_builtins contains the information for non-physical classes in package kotlin: Int, String, Enum, Annotation, Collection, etc.

karandeep singh
  • 2,294
  • 1
  • 15
  • 22