android - 使用 Xamarin 将 Android SDK 移动到另一个文件夹

标签 android xamarin visual-studio-2015

我正在尝试将 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/

相关文章:

android - 为什么 Eclipse 无法检测到 Android 设备?

android - 来自 Maven 本地的 Gradle 依赖

android - Visual Studio 2015 Xamarin 部署失败,没有任何错误消息

android - Xamarin Android : Downloading file using DownloadManager is much faster then using . NET DownloadFileAsync

javascript - 为 Visual Studio 创建具有可替换文字的 Javascript 代码段

java - Android 图库在 ACTION_IMAGE_CAPTURE 后未更新

android - Camera.takePicture 返回一个旋转的 byteArray

c# - 将颜色绑定(bind)到单例

visual-studio - 在 Visual Studio 编辑器中禁用当前行的突出显示

c# - 如何在 C# 中获取元素中的 XML 属性