• 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
Jan 6, 2023
3
3
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: 91
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: 51
Last edited:
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones