How to create a new java basic project in Android Studio?

  • Why create a new java basic project?
    • Android software development was originally developed in the java language, some of which are not commonly used, but the java basics that will be asked in the interview are forgotten, and I want to write a java Demo quiz. It takes time to download Intelij idea just for a demo. So if you can create a new java project directly with Android studio, it would be great.
  • Directly create a new main() method in psvm and run it again, can't it?
    • You can, but every time you run it will trigger a gragle mutation, and the running speed is relatively slow.
    • And after writing the code, it will usually be deleted and will not be retained.
  • Android studio 4.0.2 version specific process, click
    • File

    • New

    • New Module

    • Java or Kotlin Library

    • Next

    • Edit package name and class name

    • The default language is Kotlin, and java is selected here.

  • Xiaobai can refer to the graphic version: Use Android Studio 2.1 to create a Java project

Guess you like

Origin blog.csdn.net/zhangjin1120/article/details/114916015