2016-09-28 158 views
1

我安装xamarin为Android开发的Visual Studio 2015年的社区和我刚刚更新xamarin,现在我的项目给这个错误:的Android在Visual Studio:系统找不到指定的路径

[I:]:      Tracking android devices started 
[D:]:      Tracking avd started 
[D:]:      avd watcher *.ini path: 'C:\Users\Shelbone\.android\avd' 
[D:]:      avd watcher android path: 'E:\Android\ANDROI~1\tools\android.BAT' 
[D:]:      TrackDeviceTask got: 
[I:]:      Got new device list from adb with 0 devices 
[D:]:      avd watcher error: load process of avd devices failed, please check the following error: The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 
The system cannot find the path specified. 

但是,SDK的在那儿。 sdk paths

任何想法发生了什么?

+1

尝试将SDK和NDK移动到文件夹中不包含空格的位置。我建议将它们移动到'C:\ Android'或类似的东西。 –

+0

名称中已经没有“'。 “E:\ Development tools \ Android \ AndroidSDK” – slanden

+0

从截图中可以看到“开发工具”上的空间\ –

回答

0

提供了JAVA_HOME环境变量的值固定的错误对我来说:

JAVA_HOME = C:\ Program Files文件\的Java \ jdk1.7.0_80

0

所有你需要做的是改变路径在Regedit中的SDK。目前SDK路径指向Android文件夹,将其更改为Xamarim文件夹:

  1. 启动Regedit。
  2. 在注册表编辑器进入 “HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ Android的”
  3. 列表项找到 “路径” 字符串和编辑它的价值:目前应该是“C:\用户[用户] \应用程序数据\本地\的Android \ android-sdk“,将其改为”C:\ Users [用户] \ AppData \ Local \ Xamarin \ MonoForAndroid \ AndroidSDK“
  4. 重新启动VS.
  5. 请勿为Android创建病毒。 :p
相关问题