The Java library option is missing in Android Studio 4.1 and 4.2.2

555 Views Asked by At

I cannot find Java library when creating a new project with Android Studio 4.2.2.

Screenshot when creating new project:

screenshot when creating new project

How can I create a Java library with Android Studio 4.2.2?

1

There are 1 best solutions below

0
UnknownStackOverFlow On

You might want to check the relevant documentation:

  1. Do one of the following:

    • For Windows or Linux, select File > Settings > Editor > File and Code Templates > Files.
    • For macOS, select Android Studio > Preferences > Editor > File and Code Templates > Files.

Creating a Java class or type

Android Studio helps you to create new Java classes; enumeration and singleton classes; and interface and annotation types based on file templates.

To create a new Java class or type, follow these steps:

  1. In the Project window, right-click a Java file or folder, and select New > Java Class.

    Alternatively, select a Java file or folder in the Project window, or click in a Java file in the Code Editor. Then select File > New > Java Class.