我对Visual中的Xamarin有一个问题。我正在和Xamarin.Forms和Xamarin.Android一起工作。我的问题是,该项目的android组件不会自行安装。zip文件夹为空,组件文件夹为空。
我尝试过的解决方案:
删除./AppData/Local/Xamarin (在windows中)文件夹,该文件夹应该强制IDE下载适当的包(不工作)
下载m2repository_r29,把它放在压缩文件夹中,并给它他的哈希名(不工作)
手动安装每个库:下载、解压缩并放入右文件夹(works,但对于来自此源m2repository的每个库来说是超长的)
This is a sample of the error message I get:
Severity Code Description Project File Line Suppression State
Error An error occurred trying to install required android components on Project 'Project.AndroidClient'.
Project 'Project.AndroidClient' requires the following components installed on your machine:
Xamarin.Android.Support.Animated.Vector.Drawable
JavaLibraryReference: https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip-m2repository/com/android/support/animated-vector-drawable/23.3.0/animated-vector-drawable-23.3.0.aar-23.3.0.0
AndroidResources: https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip-m2repository/com/android/support/animated-vector-drawable/23.3.0/animated-vector-drawable-23.3.0.aar-23.3.0.0
...
Please double-click here to install it.
Intallation Errors: XA5209 Unzipping failed. Please download 'https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip:m2repository/com/android/support/animated-vector-drawable/23.3.0/animated-vector-drawable-23.3.0.aar' and extract it to the 'C:\Users\...\AppData\Local\Xamarin\Xamarin.Android.Support.Animated.Vector.Drawable\23.3.0.0\embedded' directory
XA5209 Reason: ...
请帮帮忙,我对这一切并不熟悉,我不知道该怎么做。
发布于 2018-04-19 12:20:45
使用nuget代替,xamarin将于5月5日从组件完全迁移到nuget。
https://stackoverflow.com/questions/49859044
复制相似问题