Menu

Plugins
πŸ“°

Plugins

DEV CommunityΒ·Aalaa FahiemΒ·6 months ago
#oncxtZ7N
#android#kotlin#beginners#gradle#article
Reading 0:00
15s threshold

Every Android project I've ever opened starts the same way. Right at the top of build.gradle , before any dependencies, before any SDK versions, before anything useful β€” there's this:

plugins { id ( "com.android.application" ) kotlin ( "android" ) }

Enter fullscreen mode

Exit fullscreen mode

I copy-pasted those two lines into every project I created for months. I never touched them. I didn't know what they did. I was honestly scared that if I looked at them too hard something would break.

And then one day I created a new project and only saw one of them:

plugins { id ( "com.android.application" ) }

Enter fullscreen mode

Exit fullscreen mode

The kotlin("android") line was gone. Just... missing. I panicked. Googled it. Added it back. The build failed. Removed it.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.