VS Emulator提示Adb.exe未找到,安装GApps及注册表问题求助
Hey there, let's break down why you're hitting this adb error even though you have Android SDK Tools installed. Here are the most common issues and fixes to try:
1. You're checking the wrong registry path
The Wow6432Node registry folder is reserved for 32-bit applications. If you installed the 64-bit version of Android SDK Tools, its registry entry will live directly under HKEY_LOCAL_MACHINE\SOFTWARE instead of nested inside Wow6432Node. Head to that root SOFTWARE folder first to see if the Android SDK Tools key exists there.
If it’s still missing, the installer might have failed to write the registry entry (often due to permission restrictions). You can add it manually:
- Open Registry Editor by typing
regeditin the Start menu - Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE(orHKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Nodeif you’re using a 32-bit SDK) - Right-click the parent folder, select New > Key, and name it
Android SDK Tools - Inside this new key, right-click the right pane, select New > String Value, name it
Path - Double-click the
Pathvalue, and set its data to the full path of your SDK’splatform-toolsfolder (e.g.,C:\Users\YourUsername\AppData\Local\Android\Sdk\platform-tools)
2. Visual Studio Emulator isn’t pointing to your SDK
Sometimes the VS Emulator fails to auto-detect the SDK location. You can set it manually:
- Open Visual Studio
- Go to Tools > Options > Xamarin > Android Settings
- Under Android SDK Location, browse to your root SDK installation folder (not just the
platform-toolssubfolder) - Click Apply, then restart the VS Emulator and try installing GApps again
3. ADB isn’t added to your system PATH
If the platform-tools folder isn’t in your system environment variables, the VS Emulator won’t be able to locate adb.exe globally. Fix this:
- Right-click This PC > Properties > Advanced System Settings > Environment Variables
- In the System Variables section, find
Pathand click Edit - Click New and paste the full path to your SDK’s
platform-toolsfolder - Click OK on all windows, then restart your computer to apply the changes
4. Verify adb.exe actually exists in your SDK
Double-check that adb.exe is present in your SDK’s platform-tools folder. If it’s missing, open Android Studio (or the standalone SDK Manager) and install/update the Platform Tools component to restore it.
内容的提问来源于stack exchange,提问作者Pigna

