Obsolete
Status Update
Comments
mt...@gmail.com <mt...@gmail.com> #2
Small correction to my problem summary: I falsely stated having upgraded from version 4.1.2. In fact, I have upgraded from 4.1.3.
xo...@google.com <xo...@google.com>
ne...@gmail.com <ne...@gmail.com> #3
Ran into the exact same issue
Description
Build: AI-202.7660.26.42.7322048, 202104290118,
AI-202.7660.26.42.7322048, JRE 1.8.0_144-b01x64 Oracle Corporation, OS Mac OS X(x86_64) v10.16, screens 1280x800, 1680x1050; Retina
AS: 4.2; Kotlin plugin: 202-1.5.0-release-764-AS8194.7; Android Gradle Plugin: 4.2.0; Gradle: 6.7.1; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: LLDB 3.1 (revision: 3.1.4508709); CMake: from local.properties: (not specified), latest from SDK: 3.18.1-g262b901, from PATH: (not found)
I was using Android Studio 4.1.2 with the JDK version configured in file ~/Library/Application\ Support/Google/AndroidStudio4.1/studio.jdk. When upgrading to 4.2 this setting was copied over to ~/Library/Application\ Support/Google/AndroidStudio4.2/studio.jdk and Android Studio continues to run with Java 8 as shown above. The IDE loads and basic functionality seems to work, but avdmanager does not work, showing the following symptoms:
If you click on the Error icon, and open the "IDE Fatal Errors" window, you see the following stack trace:
AndroidStudioPreview2020.3 from the Canary channel already refuses to start when configured to start with a JDK below 11. I strongly suggest to backport this check to Android Studio 4.2, to prevent the hassles I have gone through for other users (I have spent an evening and half a night on it, because I overlooked that studio.jdk file in the settings).