Error of the emulator: “Unable to access 'C:\Users\…\.emulator_console_auth_token': emulator console will not work”, with username in Cyrillic

眉间皱痕 提交于 2021-02-18 08:45:50

问题


My username is written in Cyrillic which is why when I run the android studio emulator I get an error:

Emulator: ERROR: Unable to access 'C:\Users\Александр.emulator_console_auth_token': emulator console will not work

Is there any way to migrate the path to this file?


回答1:


I solved the same problem with this video How to Rename the User’s Folder by changing Windows username to non Cyrillic. Same video in Russian language Как переименовать папку пользователя In my opinion, it is better to create a new user with Latin letters and programming there, because after renaming there may be problems with the programs. If problems appears, then search and rename the paths through regedit (ctrl + f and type "C:\users\HERE YOUR USERNAME") as shown in the video. Do at your own risk!




回答2:


I fixed it by making a folder in my user directory with the folder name that the error printed (in your case Александр), and then making an empty .emulator_console_auth_token file in that directory.

This will disable authentication: (https://developer.android.com/studio/run/emulator-console).

To disable authentication, delete the token from the .emulator_console_auth_token file or create an empty file if it doesn't exist.

But I doubt that will be a problem



来源:https://stackoverflow.com/questions/59336424/error-of-the-emulator-unable-to-access-c-users-emulator-console-auth-to

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!