简体   繁体   English

我更新Xamarin.Forms后无法运行该应用程序

[英]I can not run the app after I update Xamarin.Forms

Ok, here is the thing: 好的,这是事情:

  1. I am using Xamarin.Form to build an app that targets both iOS and Android. 我正在使用Xamarin.Form构建一个针对iOS和Android的应用程序。 I am using Xamarin Studio for Mac 我正在使用Xamarin Studio for Mac
  2. I create the app and the solution creates App, App.Droid, App.iOS project. 我创建了应用程序,解决方案创建了App,App.Droid,App.iOS项目。
  3. In every project there is an indication that show some packages need to be updated. 在每个项目中都有一个迹象表明某些包需要更新。
  4. I run the Droid project in a Samsung S5 API 21, without doing the update, and the app is installed in the device. 我在三星S5 API 21中运行Droid项目,没有进行更新,应用程序安装在设备中。
  5. I do the update of the packages, to update Xamarin.Form in 20.0.+ version base on the feedback of this question: https://forums.xamarin.com/discussion/57283/unable-to-find-a-version-of-xf-compatible-with so I just update the Xamarin.Form package. 我更新了这些软件包,根据这个问题的反馈更新了20.0。+版本中的Xamarin.Form: https ://forums.xamarin.com/discussion/57283/unable-to-find-a-version- of-xf-compatible-with所以我只是更新了Xamarin.Form包。
  6. I run again in a Samsung S5 21 but there are some errors : /Users/crs/Projects/time.al/Droid: Error XA5209: Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and extract it to the /Users/crs/.local/share/Xamarin/Android.Support.v4/23.0.1.3/content directory. (XA5209) (time.al.Droid) 我在三星S5 21中再次运行,但有一些错误: /Users/crs/Projects/time.al/Droid: Error XA5209: Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and extract it to the /Users/crs/.local/share/Xamarin/Android.Support.v4/23.0.1.3/content directory. (XA5209) (time.al.Droid) /Users/crs/Projects/time.al/Droid: Error XA5209: Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and extract it to the /Users/crs/.local/share/Xamarin/Android.Support.v4/23.0.1.3/content directory. (XA5209) (time.al.Droid)

What can I do, because I need to update the Xamarin.Forms to the latest version, but I am stuck with this for a long time. 我能做什么,因为我需要将Xamarin.Forms更新到最新版本,但我很长时间都坚持这个。

You should: 1-Download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip 2-Go to: /Users/crs/.local/share/Xamarin/Android.Support.v4/23.0.1.3/content 3-Copy the repository downloaded here and unzipped 您应该:1 - 下载https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip 2 - 转至:/Users/crs/.local/share/Xamarin/Android.Support.v4/23.0。 1.3 /内容3 - 复制此处下载的存储库并解压缩

This worked for me 这对我有用

You should: 你应该:

  1. Download https://dlssl.google.com/android/repository/android_m2repository_r22.zip 下载https://dlssl.google.com/android/repository/android_m2repository_r22.zip

  2. Then go [username]\\AppData(hidder folder)\\Local\\Xamarin\\zip 然后转到[用户名] \\ AppData(隐藏文件夹)\\ Local \\ Xamarin \\ zip

and delete any zip file from there. 并从那里删除任何zip文件。 then rebuild you project and goto step 2 location you should found there something like 96659D653BDE??????????.zip file which visual studio try to download stop build and copy step 1. downloaded file in step 2 location and rename that file with this 96659D653BDE?????????? 然后重建你的项目并转到第2步的位置,你应该找到类似96659D653BDE ??????????.zip文件的视觉工作室尝试下载停止构建和复制步骤1.下载文件在步骤2位置并重命名那个96659D653BDE的文件?????????? and remove 96659D653BDE??????????.zip file which is uncompleted. 并删除96659D653BDE ??????????。未完成的zip文件。

  1. Then go to visual studio and rebuild your project wait and Viola you got rebuild success. 然后去视觉工作室并重建你的项目等待和Viola你重建成功。 Good Luck 祝好运

Just remove the corrupted file (android_m2repository_r22.zip) and try again. 只需删除损坏的文件(android_m2repository_r22.zip),然后重试。 This happend me like two times by the bad internet connection. 由于互联网连接不良,这两次发生在我身上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以在Xamarin.Forms中的Run上对ListView项重新排序吗? - Can I reorder the ListView items on the Run in Xamarin.Forms? 如何截取我的 Xamarin.Forms 应用程序的部分屏幕截图并将其保存到我的库中? - How can I take a partial screenshot of my Xamarin.Forms app and save it into my gallery? 如何查看我的 Xamarin.Forms 应用程序是否在 Visual Studio 中的 Android 6(或更高版本)上运行或/和可运行? - How can I see if my Xamarin.Forms app is working or/and runnable on Android 6 (or higher) in Visual Studio? 如何使用 c# 在 xamarin.forms 登录成功后更改内容 - How can i change content after login success in xamarin.forms using c# 我可以使用XAML在Xamarin.Forms中设计UI - Can I design the UI in Xamarin.Forms by using XAML 如何解决/抑制 Xamarin.Forms Map 中的 DeadObjectException - How can I solve/suppress DeadObjectException in Xamarin.Forms Map 我可以在 Xamarin.Forms 中以编程方式更改 style.xml 吗? - Can I programmatically change styles.xml in Xamarin.Forms? 我可以有一个带有PCL和共享代码的Xamarin.Forms项目吗? - Can I have a Xamarin.Forms project with PCLs and shared code? 我可以阻止来自 Xamarin.forms 的键盘建议吗 - Can I prevent keyboard suggestions from Xamarin.forms Xamarin.Forms Android Error after update to Xamarin.Forms 5.0 and Android 10 - Xamarin.Forms Android Error after update to Xamarin.Forms 5.0 and Android 10
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM