2017-01-03 15 views
0

Visual Studio 2012にXamarinをインストールしようとしましたが失敗し、Visual Studio 2015にインストールしようとしましたが失敗しました。同様の問題がstackoverflowで報告されていますが、インストーラがすでにアップデートされているように見えて、新しい問題が報告されています。これを解決するために私を助けてください。Visual Studio 2012,2015(Windows 7 64 bit)にXamarinをインストールできない

Installation of 'Android SDK' failed with more than one exception (attempt 3) 
    Errors while installing items. 
    Exception type: System.AggregateException 
    Failed to install Android archive. 
    Exception type: Xamarin.Web.Installer.InstallException 
    Full stack trace: 
    at Xamarin.Web.Installer.Installer.AndroidSoftwareItem.Install(UInt32 tryNumber) 
    at WindowsInstaller.ProgressPage.InstallationWorker() 
    Failed to install Android archive. 
    Exception type: Xamarin.Web.Installer.InstallException 
    Full stack trace: 
    at Xamarin.Web.Installer.Installer.AndroidSoftwareItem.Install(UInt32 tryNumber) 
    at WindowsInstaller.ProgressPage.InstallationWorker() 
    Failed to install Android archive. 
    Exception type: Xamarin.Web.Installer.InstallException 
    Full stack trace: 
    at Xamarin.Web.Installer.Installer.AndroidSoftwareItem.Install(UInt32 tryNumber) 
    at WindowsInstaller.ProgressPage.InstallationWorker() 

最後の数行のログファイル。

[2017-01-03 05:34:06.671] [Error] Attempting to clean up. 
[2017-01-03 05:34:06.686] [Error] Trying to remove directory '<USER_HOME>\Android\android-sdk\system-images\android-23\google_apis\x86' 
[2017-01-03 05:34:07.685] [Warning] Attempt to delete a non-existing directory '<USER_HOME>\Android\android-sdk\system-images\android-23\google_apis\x86.old96145954' 
[2017-01-03 05:34:07.685] [Info] Status: failed. 
[2017-01-03 05:34:07.685] [Error] Android SDK Platform API level 23, ABI x86, tag google_apis system image. 
[2017-01-03 05:34:07.700] [Exception] Installation of Android SDK component 'system-image-23-x86-google' failed with exception. 
[2017-01-03 05:34:07.700] [Exception] System.InvalidOperationException: Component installation failed 
[2017-01-03 05:34:07.700] [Exception] at Xamarin.Installer.AndroidSDK.AndroidComponentSystemImage.Install(String archivePath, String androidSdkRoot) 
[2017-01-03 05:34:07.700] [Exception] at Xamarin.Installer.AndroidSDK.AndroidSDKInstaller.InstallComponent(AndroidComponentBase component, AndroidSdkInstance instance) 
[2017-01-03 05:34:07.700] [Info] Status: failed. 
[2017-01-03 05:34:07.700] [Info] Status: failed. 
[2017-01-03 05:34:07.716] [Exception] Installation of software item 'Android SDK' failed with exception. 
[2017-01-03 05:34:07.716] [Exception] Xamarin.Web.Installer.InstallException: Failed to install Android archive. ---> System.InvalidOperationException: Component installation failed 
[2017-01-03 05:34:07.716] [Exception] at Xamarin.Installer.AndroidSDK.AndroidComponentSystemImage.Install(String archivePath, String androidSdkRoot) 
[2017-01-03 05:34:07.716] [Exception] at Xamarin.Installer.AndroidSDK.AndroidSDKInstaller.InstallComponent(AndroidComponentBase component, AndroidSdkInstance instance) 
[2017-01-03 05:34:07.716] [Exception] at Xamarin.Installer.AndroidSDK.AndroidSDKInstaller.InstallComponents[T](List`1 components, AndroidSdkInstance instance, String progressMessageFormat, Object[] args) 
[2017-01-03 05:34:07.716] [Exception] at Xamarin.Installer.AndroidSDK.AndroidSDKInstaller.InstallSystemImage(List`1 components, AndroidSdkInstance instance, String apiLevel, SystemImageSpec sis) 
[2017-01-03 05:34:07.716] [Exception] at Xamarin.Installer.AndroidSDK.AndroidSDKInstaller.Install(AndroidSdkInstance instance, InstallationSet installationSet) 
[2017-01-03 05:34:07.716] [Exception] at Xamarin.Web.Installer.Installer.AndroidSoftwareItem.Install(UInt32 tryNumber) 
[2017-01-03 05:34:07.716] [Exception] --- End of inner exception stack trace --- 
[2017-01-03 05:34:07.716] [Exception] at Xamarin.Web.Installer.Installer.AndroidSoftwareItem.Install(UInt32 tryNumber) 
[2017-01-03 05:34:07.716] [Exception] at WindowsInstaller.ProgressPage.InstallationWorker() 
[2017-01-03 05:34:07.716] [Info] Status: failed. 
[2017-01-03 05:34:07.825] [Debug] Showing manual installation window because of error 
[2017-01-03 05:34:12.850] [Debug] Starting installation complete task. 
[2017-01-03 05:34:12.850] [Info] Background installation worker completed. 
[2017-01-03 05:34:13.193] [Info] Installation completed with failure 
[2017-01-03 05:34:13.193] [Info] Status: failed. 
+0

を再インストールしていない場合、私はこれは本当にありえない – user1396423

+0

..開発の質問をダウン投票の理由を知っているかもしれません。そのツールには疑問がありましたが、特にコードについて質問していない質問が好きではない人もいます。 – David

答えて

0

明らかに、Android SDKはインストールに失敗しています。 Android SDKは実際には、Xamarinのインストールを試みる前にダウンロードしてプレインストールすることができる別のインストールです。

Xamarin Installで見つかるように、Android SDKのインストール時にデフォルトのパスを使用するようにしてください。 AndroidのSDKに

URL: https://developer.android.com/studio/index.html#downloads

のAndroid SDKおよび潜在的にAndroidのメーカーがきれいにインストールし、その後戻ってきて、もう一度Xamarinをしよう。

+0

ありがとう、Androidスタジオがインストールされました。 Xamarinをインストールしようとしましたが、もう一度失敗しました。何かのように私のハードディスクを食べていますCドライブの4 GBの空き容量は0バイトになりました********* [2017-01-03 09:18:50.188] [例外] System.InvalidOperationException:コンポーネントのインストールに失敗しました [2017-01-03 09:18:50.188] [例外] Xamarin.Installer.AndroidSDK.AndroidComponentSystemImage.Install(String archivePath、String androidSdkRoot) [2017-01-03 09:18:50.188] [例外] at Xamarin.Installer.AndroidSDK.AndroidSDKInstaller.InstallComponent(AndroidComponentBaseコンポーネント、AndroidSdkInstanceインスタンス) – user1396423

+0

ああyaeh、アンドロイドSDKにはかなりのスペースが必要です。バージョンとすべてのシミュレータなどを考えると、まったくそれは4GBを食べてもっと欲しかったと聞いて驚いていない – David

1

まず、Android SDKだけでAndroid SDKは必要ありません。第二に、Android SDKをプリインストールすることは役に立ちません。なぜなら、VSインストーラはそれを認識せず、別の場所に自分のコピーをインストールするからです。

提案:

  1. アンイAndroidのメーカーとAndroid SDK

  2. すべてのフォルダとサブフォルダ内のため\プログラムファイル(x86の)\ Androidのフォルダ

  3. チェックセキュリティ権限を削除しますあなたのHOMEフォルダ。フルアクセスが必要です。

  4. VSインストーラを修復モードで実行します。それはXamarinアンイ、支援し、関連するすべてのもの(アンドロイド、IOS、など)と

関連する問題