The Compiler is Up and Running! 92 of 100…
Setting up the Kotlin compiler is so easy! Well, if you follow the directions.
You can find more information in the video at the bottom of the page.
I finally set up the Kotlin compiler! It only took a few minutes and I was done. In my previous attempt, I made a tiny mistake which threw off the whole installation.
I downloaded the wrong compiler.
I know, it sounds silly. But to be fair, it was an easy mistake to make. The instructions on the Kotlin website say in clear words to download the kotlin-compiler-1.4.21.zip file. But when I got to the Github page, I clicked on the file named kotlin-native-windows-1.4.21.zip.
In my defense, I’m working on a Windows machine!
This time around, I grabbed the right file. I followed the same steps from last time and updated my environment variables. After that, I tested it on a Hello World Kotlin file and everything worked as expected!
I wasn’t afraid to set up the Kotlin compiler on my own. Only thing to do was go on their website and follow the instructions. My mistake was clicking on the wrong file. At first, I didn’t think this was the issue. I even tried a few other methods for setting up my local environment.
Like downloading a brand new IDE.
But it’s all good! I’ll be careful about following instructions next time. The bright side is, now I can get back to learning Kotlin while using a local compiler of my own!
Shoutout to Prabeesh on Youtube for his tutorial on setting up the Kotlin Compiler
For more on this, watch the video below.
Join the mailing list to see updates like this every week!
Coding Fanatic
Sources:
IMG android_kotlin