I could use the emulator properly two days ago and now it does not work.
I understand there are many people facing this problem. I have read many of them and tried the solutions stated there (set/change the environment variable of ANDROID_SDK_ROOT & ANDROID_HOME, re-install Android Studio, check avd file, etc.), but did not solve the problem.
My sdk file is in C:\Android\sdk and that is the place where Android SDK Manager in Android Studio found Android SDK as is existing. I have set ANDROID_SDK_ROOT value to C:\Android\sdk. I do not know what else to do. Is there anyone who knows how to resolve this?
I am using Android Studio 3.5.3 on Windows 10.
Thank you in advance for your reply.
I got the same problem recently and got it solved after doing some googling and trying..
It's because the emulator can't read path that containing non-ascii strings properly and in default AVD-specific files are located at C:/Users/%USERNAME%/.android/avd/, but somehow the error log doesn't give right hint and mislead us to focus on ANDROID_SDK_ROOT, so you only need to add ANDROID_AVD_HOME variable with a ascii path like ANDROID_AVD_HOME=D:\Android_avd and restart your IDE. After that your emulator will run properly.
More info https://developer.android.com/studio/command-line/variables
Update: You may need to create a subdirectory .android like C:\test\.android and add a ANDROID_SDK_HOME=C:\test variable, then add a empty .emulator_console_auth_token file which locates at the corresponding floder according to the error log, for me it's C:\Users\鍑濈传绉嬭悓\.emulator_console_auth_token.
After that you should run it without any error, I've already tested it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With