https://kotlinlang.org logo
k

kingvhit

06/14/2017, 2:51 AM
Sorry for my stupid question but does anybody let me know how can import synthetic automatically ? Like :
import kotlinx.android.synthetic.main.activity_main.*
Or any shortcut do it by your hand ?
a

akbarsha03

06/14/2017, 6:10 AM
kingvhit: You will have to add
apply plugin: 'kotlin-android-extensions
to your
build.gradle
to make your studio show import options
k

kingvhit

06/14/2017, 6:10 AM
@akbarsha03 Thanks you for your suggest, I have resolved this problem.
👍 1
s

smilecs

06/14/2017, 9:04 AM
@kingvhit how did you resolve it?