標籤:
我原來一直用的是老版本的 Xamarin , android_m2repository_rxx.zip 早已在 C:\Users\XXX\AppData\Local\Xamarin\Android.Support.Design\XXX 中存在,所以更新最新的 Xamarin 後, 這一塊都是沒有任何問題的。
有園友反映這個 zip 明明已經放到了指定的檔案夾中,但是還是會反覆的 Please download XXXX。
1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(348,2): error XA5208: Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.Design\23.0.1.3 directory.
1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(348,2): error XA5208: Reason: 發生一個或多個錯誤。
1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(348,2): error XA5207: Please install package: ‘Xamarin.Android.Support.Design‘ available in SDK installer. Java library file C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.Design\23.0.1.3\embedded\classes.jar doesn‘t exist.
1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(348,2): error XA5208: Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.Design\23.0.1.3 directory.
1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(348,2): error XA5208: Reason: 發生一個或多個錯誤。
今天我在公司的電腦上試了試,確實存這個問題。
如果因為這個android_m2repository_rxx.zip 無法下載而引起的編譯錯誤,請按如下方法解決:
1,
在C:\Users\XXX\AppData\Local\Xamarin\zips 下面有一個空的 zip 檔案:
2,把準備好的 android_m2repository_rxx.zip 放到這個檔案夾下,並重新命名為中的那個檔案名稱(即替換)。
3,重新編譯。
這個問題在老版本中不存在(具體是哪個版本中有這個問題的,我不清楚),現在只需要把 android_m2repository_rxx.zip 放到這一個檔案夾下,並重新命名,不在需要放入其它的檔案夾下。
Xamarin.Android 反覆報 Please Download android_m2repository_rxx.zip 的解決辦法
標籤:des android class log com http si it la
原文:http://www.cnblogs.com/xling/p/5359811.html
Xamarin.Android 反覆報 Please Download android_m2repository_rxx.zip 的解決辦法