Emulator For Android 12 Preview No Connection
Solution 1:
Based on the issuetracker, the Android S beta 2 emulator image depends on a newer version of the emulator itself (without explicitly requiring it). The problem should be resolved by installing a newer 30.7.3 version of the emulator from the canary channel.
Update 2021-06-23: Emulator 30.7.4 is now available in the stable channel.
Solution 2:
I was able to fix this by using a couple of things.
Changing the Graphics option on the Android Virtual Device to Software instead of Automatic or Hardware.
Upgrading my system's Java version from 8 to 11.
To fix this, first check the java version installed on your system by using:
java -version
In case you see Java 8, try to install Java 11 from OpenJDK (https://jdk.java.net/archive/) and then you can add aliases like this in your ~/.bash_profile file:
export JAVA8_HOME=$(/usr/libexec/java_home -v1.8)
export JAVA11_HOME=$(/usr/libexec/java_home -v11)
alias java8='export JAVA_HOME=$JAVA8_HOME'alias java11='export JAVA_HOME=$JAVA11_HOME'
Then you can easily switch to Java 11 by using:
java11
And now try to open the emulator again. It should work.
Post a Comment for "Emulator For Android 12 Preview No Connection"