zoukankan      html  css  js  c++  java
  • xamarin.forms新建项目android编译错误

    vs2015 update3 新建的xamarin.forms项目中的android项目编译错误。提示缺少android_m2repository_r22.zip,96659D653BDE0FAEDB818170891F2BB0.zip等类似错误。

    Error Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:UserswarrenbrAppDataLocalXamarinAndroid.Support.Design23.0.1.3 directory. XamarinFormsExample.Droid
    
    Error Reason: One or more errors occurred. XamarinFormsExample.Droid
    
    Error Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:UserswarrenbrAppDataLocalXamarinAndroid.Support.Design23.0.1.3 directory. XamarinFormsExample.Droid
    
    Error Reason: One or more errors occurred. XamarinFormsExample.Droid
    
    Error Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v423.0.1.3 directory. XamarinFormsExample.Droid
    
    Error Reason: One or more errors occurred. XamarinFormsExample.Droid
    
    Error Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Java library file C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v423.0.1.3embeddedclasses.jar doesn't exist. XamarinFormsExample.Droid
    
    Error Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v423.0.1.3 directory. XamarinFormsExample.Droid
    
    Error Reason: One or more errors occurred. XamarinFormsExample.Droid
    
    Error Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Java library file C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v423.0.1.3embeddedlibs/internal_impl-23.0.1.jar doesn't exist. XamarinFormsExample.Droid
    
    Error Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v423.0.1.3 directory. XamarinFormsExample.Droid
    
    Error Reason: One or more errors occurred. XamarinFormsExample.Droid
    
    Error Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Android resource directory C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v423.0.1.3embedded./ doesn't exist. XamarinFormsExample.Droid
    
    Error Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v7.AppCompat23.0.1.3 directory. XamarinFormsExample.Droid
    
    Error Reason: One or more errors occurred. XamarinFormsExample.Droid
    
    Error Please install package: 'Xamarin.Android.Support.v7.AppCompat' available in SDK installer. Java library file C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v7.AppCompat23.0.1.3embeddedclasses.jar doesn't exist. XamarinFormsExample.Droid
    
    Error Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v7.AppCompat23.0.1.3 directory. XamarinFormsExample.Droid
    
    Error Reason: One or more errors occurred. XamarinFormsExample.Droid
    
    Error Please install package: 'Xamarin.Android.Support.v7.AppCompat' available in SDK installer. Android resource directory C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v7.AppCompat23.0.1.3embedded./ doesn't exist. XamarinFormsExample.Droid
    
    Error Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v7.CardView23.0.1.3 directory. XamarinFormsExample.Droid
    
    Error Reason: One or more errors occurred. XamarinFormsExample.Droid
    
    Error Please install package: 'Xamarin.Android.Support.v7.CardView' available in SDK installer. Java library file C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v7.CardView23.0.1.3embeddedclasses.jar doesn't exist. XamarinFormsExample.Droid
    
    Error Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v7.CardView23.0.1.3 directory. XamarinFormsExample.Droid
    
    Error Reason: One or more errors occurred. XamarinFormsExample.Droid
    
    Error Please install package: 'Xamarin.Android.Support.v7.CardView' available in SDK installer. Android resource directory C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v7.CardView23.0.1.3embedded./ doesn't exist. XamarinFormsExample.Droid
    
    Error Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v7.MediaRouter23.0.1.3 directory. XamarinFormsExample.Droid
    
    Error Reason: One or more errors occurred. XamarinFormsExample.Droid
    
    Error Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer. Java library file C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v7.MediaRouter23.0.1.3embeddedclasses.jar doesn't exist. XamarinFormsExample.Droid
    
    Error Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v7.MediaRouter23.0.1.3 directory. XamarinFormsExample.Droid
    
    Error Reason: One or more errors occurred. XamarinFormsExample.Droid
    
    Error Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer. Java library file C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v7.MediaRouter23.0.1.3embeddedlibs/internal_impl-23.0.1.jar doesn't exist. XamarinFormsExample.Droid
    
    Error Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v7.MediaRouter23.0.1.3 directory. XamarinFormsExample.Droid
    
    Error Reason: One or more errors occurred. XamarinFormsExample.Droid
    
    Error Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer. Android resource directory C:UserswarrenbrAppDataLocalXamarinAndroid.Support.v7.MediaRouter23.0.1.3embedded./ doesn't exist. XamarinFormsExample.Droid
    View Code

    解决办法

    1. 删除文件夹 C:Usersyour userAppDataLocalXamarin
    2. 新建文件夹C:Usersyour userAppDataLocalXamarinzips
    3. 将下载的zip文件copy到zips文件夹,下载地址和文件夹名称关系可参考 http://www.cnblogs.com/qinjin/p/m2repository.html
    4. 清理解决方案,然后重新生成即可

    参考

    解决Xamarin Android墙的问题

    http://stackoverflow.com/questions/36616524/xamarin-support-package-error

    http://forums.xamarin.com/discussion/61533/project-wont-build-xamarin-android-support

  • 相关阅读:
    css3 preserve-3d 的理解 注意IOS上的兼容
    javascript JSMpeg.js 播放视频解决不用全屏也能播放(也支持自动播放哦)
    linux写系统服务的方法
    mysql connect refuse解决方法
    SQLite-CONSTRAINTS(约束)
    Java集合
    自定义一个简单的SegmentedControl
    symbolicatecrash解析crash文件
    django应用的测试
    WordPress调用page页面内容方法
  • 原文地址:https://www.cnblogs.com/calvinK/p/5732511.html
Copyright © 2011-2022 走看看