我正在尝试将 Android SDK 从默认文件夹 (C:\Program Files (x86)\Android\android-sdk) 移动到另一个驱动器。我已经将 VS 选项中的以下项目更改为新路径:
- 工具 |选项 |赛马林 | Android SDK 位置
- 工具 |选项 |跨平台 | C++ |安卓|安卓开发工具包
但是,出于某种原因,Visual Studio 仍会尝试从旧位置运行 ADB。我在哪里可以配置新的?
编辑: ProcMon 日志
08:34:09,2974468 devenv.exe 9548 CreateFile C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
08:34:09,2975321 devenv.exe 9548 CreateFile C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe.exe PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
最佳答案
试试这个:
Open Registry Editor by selecting Run from the Start buttons context menu, typing regedit in the dialog box, and choosing OK. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Android SDK Tools in the folder tree on the left. Modify the Path registry variable to match the path to your Android SDK.
发件人:https://msdn.microsoft.com/en-us/library/mt228282.aspx
它应该可以工作。
关于android - 使用 Xamarin 将 Android SDK 移动到另一个文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33820901/