惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MyScale Blog
MyScale Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
SegmentFault 最新的问题
Y
Y Combinator Blog
月光博客
月光博客
IT之家
IT之家
T
Tailwind CSS Blog
Last Week in AI
Last Week in AI
L
LangChain Blog
博客园_首页
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
博客园 - Franky
WordPress大学
WordPress大学
云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
V
Visual Studio Blog
小众软件
小众软件
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium

博客园 - 瑞雪年

开始使用 Xamarin.Forms.Platform.Avalonia Git仓库迁移命令 .NET Core也可以使用MongoDB了 ng2-timesheet, 一个timesheet.js的angular2复制版 Angular 2 + Electron 开发web和桌面应用 Xamarin.Forms.Platform.Perspex, Xamarin Forms 的 Perspex(号称下一代WPF) 实现 Salesforce + AngularJS + Bootstrap NativeScript 也能开发桌面应用 (nativescript-dotnet-runtime) iOS集成丁香园DXY OAuth 登陆 swift代码示例 WinObjC?这是什么鬼? 如何禁用Marlin温度保护 React Native也正式发布了 微信企业号 用javascript写Android和iOS naitve应用,实在炫酷。 CoreCLR 在 Linux 下编译成功 Swift 对比学习 (二) Swift 对比学习 (一) 重量级Orchard模块发布 - 模块生成工具RaisingStudio.ModuleGenerator coding.net
Visual Studio Xamarin编译Android项目出错的解决办法
瑞雪年 · 2016-04-29 · via 博客园 - 瑞雪年

安装完Xamarin后,编译Android项目时,你会发现好长时间进度都不动,当你取消编译后,会发现其实是出错了,就是因在Android项目在第一次编译时要去google网站上下一个andorid sdk包,墙内又连不上,就卡在那了,解决办法就是自已到国内的一些镜像网站上(如:http://mirrors.opencas.cn/android/)下一个,如:android_m2repository_r29.zip, 然后解压到任意目录下,用mklink建立链接到C:\Users\{username}\AppData\Local\Xamarin\Android.Support.v4\23.3.0.0目录下,名字叫content,如命今:

cd Android.Support.Animated.Vector.Drawable\23.3.0.0
rmdir content
mklink /j content ..\..\android_m2repository_r29
cd ..\..\

cd Android.Support.Design\23.3.0.0
rmdir content
mklink /j content ..\..\android_m2repository_r29
cd ..\..\

cd Android.Support.v4\23.3.0.0
rmdir content
mklink /j content ..\..\android_m2repository_r29
cd ..\..\

cd Android.Support.v7.AppCompat\23.3.0.0
rmdir content
mklink /j content ..\..\android_m2repository_r29
cd ..\..\

cd Android.Support.v7.CardView\23.3.0.0
rmdir content
mklink /j content ..\..\android_m2repository_r29
cd ..\..\

cd Android.Support.v7.MediaRouter\23.3.0.0
rmdir content
mklink /j content ..\..\android_m2repository_r29
cd ..\..\

cd Android.Support.v7.RecyclerView\23.3.0.0
rmdir content
mklink /j content ..\..\android_m2repository_r29
cd ..\..\

cd Android.Support.Vector.Drawable\23.3.0.0
rmdir content
mklink /j content ..\..\android_m2repository_r29
cd ..\..\

cd Android.Support.Animated.Vector.Drawable\23.3.0.0
rmdir content
mklink /j content ..\..\android_m2repository_r29
cd ..\..\

这样再回到VS中编译,就OK了。