I try to write my android gradle scripts in Kotlin...
# gradle
r
I try to write my android gradle scripts in Kotlin. The first parts (buildscript, dependencies, …) work fine, but i have to add the import statments manually. But when i try to create a
android
domain, i cannot find the right package to import to. Is there a good beginner guide in gradle kotlin scripts aside of the samples in the github repo?
☝️ 1
j
You're best friend right now is IntelliJ IDEA. I don't know if Android Studio (which is based off of eclipse (I think)) has support for autocomplete in
kts
files yet.
r
No it’s based on IntelliJ. But I’ll try the clean intelliJ.
j
Have you looked at any of the android samples in the repo?
Oh, hey, it is based upon IntelliJ
r
Yes, but they assume to have the repo cloned inside the project. But as far as I see it, all the packages of kotlin-dsl should already be shipped with Android Studio. But for this reason the sample code for android scripts doesn’t have any import statements.