2016-09-28 211 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
相關問題