Hi, I suggest you read this :
https://kotlinlang.org/docs/reference/using-gradle.html
There is a gradle file that is responsible for this. You can have an app with both kotlin and java code, but I am not sure compilation got anything to do with how fast it will run. If you want to be sure your app will work on all devices you need to choose the right SDK. If you use Android Studio you'll have a clear idea about your app's compatibiliy before you create it ^^