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
jlleitschuh
10/04/2017, 5:37 PM
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
roman_empire
10/04/2017, 5:49 PM
No it’s based on IntelliJ. But I’ll try the clean intelliJ.
j
jlleitschuh
10/04/2017, 6:49 PM
Have you looked at any of the android samples in the repo?
jlleitschuh
10/04/2017, 6:50 PM
Oh, hey, it is based upon IntelliJ
r
roman_empire
10/04/2017, 7:02 PM
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.