我一直在試驗/在Visual Studio中檢查Xamarin的最後幾個發呆。然而,昨天我打開了Android SDK Manager,發現有四個(我認爲是)需要更新的軟件包。但是,嘗試這樣做失敗,說「文件夾無法移動。在Windows上,這通常意味着android sdk manager ...「)。如何重新連接已關閉連接的VS/Xamarin項目?
然後我關閉並重新啓動VS2013/Xamarin。隨後嘗試打開SDK管理器只是導致錯誤消息(」由於命令未成功執行。一個意外的異常請檢查輸出窗口以獲取更多信息「),這裏有。‘更多細節’:
System.ComponentModel.Win32Exception(0x80004005的):系統無法找到該文件在指定System.Diagnostics程序 。 Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at Mono.VisualStudio.Extension.ProcessWrapper.RunWith輸出(字符串可執行程序,的Int32 WAITTIME,字符串工作目錄,IVsOutputWindowPane outputPane,字符串[]參數) 在Mono.Android.VisualStudio.MonoAndroidSdk.StartAndroidSdkManager() 在Mono.Android.VisualStudio.Commands.StartSdkManager.Execute(IMenuCommand命令) 在Mono.VisualStudio.Extension.Commands.VsCommandExtensionAdapter。 <> c__DisplayClass5.b__3() 在Mono.VisualStudio.Extension.TracingExtensions.ShieldUI(示蹤劑的ITracer,行動對行動,字符串格式,字串[] args)
現在(即使重新啓動Windows後),我甚至能夠打開項目,因爲我假設,到側軌升級的中斷狀態。這是我所看到的:
也有這些犯錯封郵件:
不支持 此Visual Studio的版本無法打開以下項目。項目類型可能未安裝,或者此版本的Visual Studio可能不支持它們。 有關啓用這些項目類型或以其他方式遷移資產的更多信息,請在單擊「確定」後顯示「遷移報告」中的詳細信息。 - PlatypusMobile.Android, 「C:\用戶\粘土\文件\的Visual Studio 2013 \項目\ PlatypusMobile \ PlatypusMobile.Android.csproj」 需要
非功能性改變 Visual Studio會自動進行非功能性更改爲以下項目,以便使它們能夠在Visual Studio 2013,Visual Studio 2012和Visual Studio 2010 SP1中打開。項目行爲不會受到影響。 - PlatypusMobile,「C:\ Users \ clay \ documents \ visual studio 2013 \ Projects \ PlatypusMobile \ PlatypusMobile。SLN」
此外,ERR封郵件一說一看:
C:\users\clay\AppData\Roaming\Microsoft\VisualStudio\12.0\ActivityLog.xml
這兒有一些最有趣的部分:
<?xml version="1.0" encoding="utf-16"?>
<?xml-stylesheet type="text/xsl" href="ActivityLog.xsl"?>
<activity>
<entry>
<record>1</record>
<time>2014/03/28 15:03:09.061</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Microsoft Visual Studio 2013 version: 12.0.30110.0</description>
</entry>
<entry>
<record>2</record>
<time>2014/03/28 15:03:09.061</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Running in User Groups: Administrators Users</description>
</entry>
<entry>
<record>3</record>
<time>2014/03/28 15:03:09.061</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Available Drive Space: C:\ drive has 820592128000 bytes</description>
</entry>
. . .
<entry>
<record>924</record>
<time>2014/03/28 15:03:55.266</time>
<type>Error</type>
<source>Extension Manager</source>
<description>Extension will not be loaded because an extension with the same ID 'Microsoft.Windows.DevelopmentKit.Desktop' is already loaded at C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\8.0\DESKTOP SDK\...</description>
<path>C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\8.1\DESKTOP SDK\</path>
</entry>
. . .
<entry>
<record>1001</record>
<time>2014/03/28 15:04:42.000</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [MonoAndroidPackage]</description>
<guid>{296E6A4E-2BD5-44B7-A96D-8EE3D9CDA2F6}</guid>
</entry>
<entry>
<record>1011</record>
<time>2014/03/28 15:09:31.962</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [MonoAndroidPackage]</description>
<guid>{296E6A4E-2BD5-44B7-A96D-8EE3D9CDA2F6}</guid>
<hr>80131509</hr>
<errorinfo>This property is not valid when the SDK is not installed</errorinfo>
</entry>
<entry>
<record>1012</record>
<time>2014/03/28 15:09:31.963</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [MonoAndroidPackage]</description>
<guid>{296E6A4E-2BD5-44B7-A96D-8EE3D9CDA2F6}</guid>
<hr>80131509</hr>
<errorinfo>This property is not valid when the SDK is not installed</errorinfo>
</entry>
<entry>
<record>1014</record>
<time>2014/03/28 15:17:40.128</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [MonoAndroidPackage]</description>
<guid>{296E6A4E-2BD5-44B7-A96D-8EE3D9CDA2F6}</guid>
</entry>
<entry>
<record>1015</record>
<time>2014/03/28 15:17:42.660</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [MonoAndroidPackage]</description>
<guid>{296E6A4E-2BD5-44B7-A96D-8EE3D9CDA2F6}</guid>
<hr>80131500</hr>
<errorinfo>There is already a logger with the name 'Xamarin.Android'</errorinfo>
</entry>
<entry>
<record>1016</record>
<time>2014/03/28 15:17:42.660</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [MonoAndroidPackage]</description>
<guid>{296E6A4E-2BD5-44B7-A96D-8EE3D9CDA2F6}</guid>
<hr>80131500</hr>
<errorinfo>There is already a logger with the name 'Xamarin.Android'</errorinfo>
</entry>
</activity>
我如何可以重組破碎的碎片和讓項目再次打開,以便我可以重試升級Android SDK軟件包?可以將Humpty-Dumpty重新放在一起嗎?
注意:與此同時,我在Android Studio中啓動並運行了我的第一個應用程序。
「在Windows中,這通常意味着Android SDK中的經理... 「看起來被切斷了......? –
對不起,一個更充足的措辭:「在Windows上,這通常意味着程序正在使用該文件夾(例如Windows資源管理器或您的防病毒軟件)。請暫時停用您的防病毒軟件。正在訪問目錄[Bla]「 –