Changing the current selection from JDK 1.8 to JDK 11 works for me: You can change the JDK that Gradle uses in the Gradle projects section’s Gradle JDK menu. Once the Settings or Preferences window is open, select Build, Execution, Deployment → Build Tools → Gradle from the menu on the left side. On macOS, open the Android Studio menu and select Preferences… to get to the Preferences window (you can also use the keyboard shortcut ⌘ +, ).On Linux and Windows, open the File menu and select Settings… to get to the Settings window (you can also use the keyboard shortcut Ctrl + Alt + s).It assumes that you already have JDK 11 installed. ![]() You’ve created a brand new project, and when you run it - even if you haven’t made any changes - you get the dreaded Android Gradle plugin requires Java 11 to run error: ![]() Maybe you’ve run into this Android Studio problem lately.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |