kotlinubuntu

Unable to check installed kotlin version


I was a web developer having 10+ years of experience in that but now i want to switch my profile into android app development. So i am new to android but have experience in web development. To develop android apps i have started learning kotlin in my ubuntu system 24.04.2 LTS but failed to install kotlin in that system.

is anyone out there have time to help me setting up kotlin in my ubuntu system ?

I have installed kotlin through following command :

sudo snap install kotlin --classic

kotlin 2.1.20 from jetbrains✓ installed

After installation, when i check version of kotlin through below command :

kotlin -version

the error given by my ubuntu system is :

error: no build.txt was found at home=/usr/share/kotlin/kotlinc

although expected output was :

Kotlin version


Solution

  • It seems like Kotlin was not installed correctly, have you tried looking into tutorials?
    https://youtu.be/Fu00X0RZwyY?si=vSZbgES2siV5J8Xi

    Try to uninstall Kotlin, and go through the video. But using Android Studio can make it more intuitive