daisukeiga00
daisukeiga00

Reputation: 51

How do I open a Kotlin/JVM project in Android Studio?

I am following a tutorial series on YouTube: Kotlin for Beginners. The author is using IntelliJ IDEA for the tutorials and mentions that the work can be done using Android Studio as well. But does mention how to do that. I would rather not download IntelliJ IDEA as I already have Visual Studio 2019 and Android Studio on my laptop; and am running out of space. How can I set up an Android Studio project as if it were a 'plain ole' Kotlin/JVM project?

(I am a month new to software developing overall and don't want to make any permanent, seemingly irreversible or non-simple changes to Android Studio IDE itself.)

I already tried opening an Android Studio project as an Empty Activity, Kotlin, API 21 (Lollipop)

Upvotes: 5

Views: 3672

Answers (2)

vatbub
vatbub

Reputation: 3119

Android Studio is based on IntelliJ but limited to Android-Projects (Hence, you cannot open any Non-Android projects in Android Studio). On the other hand, IntelliJ can open any Java/Kotlin project including Android Projects. I would therefore recommend you to uninstall Android Studio from your machine and use IntelliJ instead. In most cases, you will not feel the difference except that IntelliJ can do more that Android Studio can.

Upvotes: -1

CrazyCoder
CrazyCoder

Reputation: 401975

Android Studio has no support for plain Java or Kotlin projects, you can work only on Android projects (Gradle based).

Use IntelliJ IDEA Community or Ultimate for the plain Java/Kotlin projects and other project types.

Upvotes: 5

Related Questions