• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Beginner Android Studio setup

Floris91

Lurker
I was watching this on youtube and noticed that everything is completed automatically in his Android Studio.


For example at 3:08 he gets a drop down menu in MainActivity.kt which consists of the id's created in activity_main.xml. I do get a dropdown but it doesn't consist of the id's that I created in activity_main.xml. Am I missing some imports or are some settings wrong?
 

Attachments

  • screenshot.png
    screenshot.png
    233.5 KB · Views: 112
Sorry for bothering, didn't take me long to find the solution. I was missing some lines in the build.gradle ( :app). The missing lines were: " id 'kotlin-android' " and "id 'kotlin-android-extensions' ", see screenshot. Not sure why it was missing, but this solved it for me.
 

Attachments

  • screenshot.png
    screenshot.png
    19.1 KB · Views: 74
Last edited:
Back
Top Bottom