How to run a class code in Android Studio when you don’t have an Activity?

Asked

Viewed 30 times

0

I’m trying to learn Kotlin, but I want to test certain algorithms and I can’t run a class because Android Studio can’t find Main Default. Doesn’t have a way to run a class at the Android Studio prompt itself? This IDE just happens to run only when running on the emulator?

  • Android Studio only compiles if you have the emulator on or if your phone is plugged into your PC. To learn Kotlin, the best tool is Intellij. Hugs

1 answer

0


Use this official website of Kotlin, there is the platform and has the tool for you to run only the code and see the result in real time without the need to install Android Studio at this time, so you focus on learning to program language.

On the site there are many exercises to practice and master the language.

It is worth exploring the site and this is the link:

https://play.kotlinlang.org/? _ga=2.75826076.802392123.1610591531-48417380.1594816894#Cagchjpbnrsbihcikhlbgxvlcb3b3jszcehisbvb29vxcipxg59in0=

Good studies.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.