Android SDK Manager
,並且將 Android SDK Tools
與 Android SDK Platform-tools
移除了。此時,系統會確認您是否有刪除這些套件。
下次,若您再度從 Visual Studio 內,想要開啟同樣的工具,
Android SDK Manager
,便會看到下圖的錯誤訊息Command did not execute successfully due to an unexpected exception. Please check the output windows for additional information.
從
輸出
視窗內,會但到底下訊息:[I:sdk]: Key HKCU\SOFTWARE\Novell\Mono for Android\AndroidSdkDirectory not found.
[I:sdk]: Key HKCU\SOFTWARE\Novell\Mono for Android\AndroidNdkDirectory found:
Path contains ndk-stack in \. (C:\ProgramData\Microsoft\AndroidNDK\android-ndk-r10e\).
[I:sdk]: Key HKCU\SOFTWARE\Novell\Mono for Android\JavaSdkDirectory not found.
[I:sdk]: Looking for Android SDK..
[I:sdk]: Key HKCU\SOFTWARE\Novell\Mono for Android\AndroidSdkDirectory not found.
[I:sdk]: Key HKLM\SOFTWARE\Novell\Mono for Android\AndroidSdkDirectory found:
Path does not contain adb in \platform-tools (C:\android-sdk-windows).
[I:sdk]: Key HKCU\SOFTWARE\Xamarin\MonoAndroid\PrivateAndroidSdkPath not found.
[I:sdk]: Key HKCU\SOFTWARE\Android SDK Tools\Path not found.
[I:sdk]: Key HKLM\SOFTWARE\Android SDK Tools\Path found:
Path contains adb in \platform-tools (C:\Program Files (x86)\Android\android-sdk).
[I:sdk]: Key HKCU\SOFTWARE\Novell\Mono for Android\JavaSdkDirectory not found.
[I:sdk]: Key HKLM\SOFTWARE\Novell\Mono for Android\JavaSdkDirectory not found.
[I:sdk]: Looking for Java 6 SDK..
[I:sdk]: Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion found.
[I:sdk]: Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.6\JavaHome not found.
[I:sdk]: Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.7\JavaHome found:
Path contains jarsigner.exe in \bin (C:\Program Files (x86)\Java\jdk1.7.0_55).
[I:Unknown]: Found Android SDK. API levels: (none)
[I:Unknown]: Found Xamarin.Android 7.0.1
請從控制台,找到 Android SDK Tools
將其移除接著,在控制台新增/移除中,找到
Microsoft Visual Studio 2105
雙擊這個項目,當安裝程式跑完之後,點選 Modify
在
Android SDK [3rd Party]
,將其安裝起來,就可以了。之後,就可以開啟 Visual Studio 2015,您會發現,您可以開啟了
Android SDK Manager
沒有留言:
張貼留言