Reputation: 481
I just installed Android Studio, when I run the Android Emulator it says: "To Start Android, enter your password" and it reminds me the password is wrong". How can i fix it? I would be very glad if someone has an answer for this
Upvotes: 47
Views: 49495
Reputation: 1
Go to your Users folder > .android > avd folder > then delete the avds configuration or wipe out everything.
Then go back to your VS and click Android Emulator. VS will show you their recommended configuration. Use that and run your project with that emulator.
Upvotes: 0
Reputation: 11
This solution working for me on VS2017/Xamarin
emulator.exe -verbose -feature WindowsHypervisorPlatform -avd "My_device_name" -prop emu.uuid="your_id" -skip-adb-auth -wipe-data
More information will be available in your log file: See most recent file here: C:\Users\"my_account_name"\AppData\Roaming\XamarinDeviceManager
Upvotes: 1
Reputation: 31
Open
...\USER.android\AVD_NAME.avd\emulator-user.ini
There's a "uuid" which contains the password.
For example:
uuid = 1568486155483
And 1568486155483
is the password.
Worked 4 me :)
Upvotes: 2
Reputation: 2073
Setting the ANDROID_SDK_HOME as described in a previous answer didn't work for me (although it did start using the folder I specified, placing a new .android
folder there and using it)
Neither did doing a Factory Reset by right-clicking on the device in the Android Device Manager in Visual Studio 2019.
The only thing that worked for me was making sure that the checkbox for Google APIs was checked, and making sure it was on x86 of course; selecting x86_64 grays out the two checkboxes. Note that it doesn't matter whether I use a Pixel or some other device such as a Nexus; it apparently always needs to use the image with the Google APIs.
Upvotes: 17
Reputation: 246
I had this issue when trying to use the x86_64 processor, even when I created a brand new device. Using the x86 processor in the device properties resolved the issue for me.
Upvotes: 1
Reputation: 91
In VS2017 version 15.9.3,perform the following steps :
Good Luck!
Upvotes: 8
Reputation: 277
I had the same issue but was using Visual Studio 2017 and Xamarin rather than Android Studio. Doing a Factory reset in the Android Device Manager in Visual Studio didn't work for me.
So I installed Android Studio and as per Yao's answer, launched the AVD Manager from in there then selected 'Wipe Data' from the triangle dropdown. This resolved the issue and I was able to use the emulator from within Visual Studio again.
The Android Device Manager in Visual Studio seems to be missing some features compared to the one in Android Studio, so this solution is the only one I could find that worked.
Upvotes: 1
Reputation: 13
Try this:
Go to the config file of this AVD, The default location is the following (where AVD_NAME
is the AVD name, and USER
is your system user):
~/.android/avd/AVD_NAME.avd/config.ini
C:\Documents and Settings\USER\.android\AVD_NAME.avd\config.ini
C:\Users\USER\.android\AVD_NAME.avd\config.ini
C:\Users\<user>\.android\avd\Android_Accelerated_x86_Oreo.avd\config.ini
Remove any blank line from the beginning and the end of the file.
hope this helps.
Upvotes: 0
Reputation: 111
I had this problem on my Visual Studio 2017 Community development setup and here is how I solved it:
*Just be sure that all the data you've saved on the AVD will be lost once you factory-reset it.
Upvotes: 11
Reputation: 2286
Wiping data in Android Virtual Device Manager works for me.
Tools -> Android -> AVD Manager -> Actions (triangle down) -> Wipe Data
Upvotes: 46
Reputation: 31
My case was the described by Hyosoo Kim. I solved the problem renaming my user profile folder (following these intructions Change the Name of a User Profile Folder in Windows 10) and deleting the folder .android under my profile folder.
Upvotes: 1
Reputation: 405
Windows
Hyosoo Kim is right about the problem (non-ascii characters in the user directory), but I think this is an easier solution :
Add a new User Environment Variable :
Control Panel -> System -> Advanced System Settings -> Environment Variables
Add a new user variable
Name : ANDROID_SDK_HOME
Value : the path to a directory not in your user home (C:\Android for example)
There you go !
Upvotes: 10
Reputation: 21
If your user directory contains non-ascii characters, then try to change user name to English name. I had same problem and it was solved when I logged on to root account.
Upvotes: 1