Unable to create a Android project in Android Studio (I/0 Preview) 130.737825 (Mac)

后端 未结 6 1158
耶瑟儿~
耶瑟儿~ 2021-02-19 01:05

I opened my Android Studio today and it asked to upgrade to the latest version which I did.

Now I am unable to create a new project. I follow the wizard to create a proj

6条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-19 01:48

    As shell said:

    WARNING: You are launching the IDE using OpenJDK Java runtime.
    
             ITS KNOWN TO HAVE PERFORMANCE AND GRAPHICS ISSUES!
             SWITCH TO THE ORACLE(SUN) JDK BEFORE REPORTING PROBLEMS!
    
    NOTE:    If you have both Oracle (Sun) JDK and OpenJDK installed
             please validate either STUDIO_JDK, JDK_HOME, or JAVA_HOME environment variable points to valid Oracle (Sun) JDK installation.
             See http://www.jetbrains.com/help/phpstorm/installation-guide.html?section=Windows#h2linux for more info on switching default JDK.
    

    I think this is the problem. You must switch android-studio's jdk to the right path.

提交回复
热议问题