简体   繁体   English

SwipeRefreshLayout在Visual Studio + Xamarin上不存在

[英]SwipeRefreshLayout does not exist on Visual Studio + Xamarin

I have a problem when I'm trying to run my program on my phone. 尝试在手机上运行程序时出现问题。 I'm using Visual Studio 2015 and Xamarin for developing android app. 我正在使用Visual Studio 2015和Xamarin开发Android应用程序。 I got this error : 我收到此错误:

error: package android.support.v4.widget.SwipeRefreshLayout does not exist android.support.v4.widget.SwipeRefreshLayout.OnRefreshListener 错误:包android.support.v4.widget.SwipeRefreshLayout不存在android.support.v4.widget.SwipeRefreshLayout.OnRefreshListener

Here is my References Pic , I already added Xamarin.Android.Support.V4 and Xamarin.Android.Support.V13 and this is my SDK Manager Pic 这是我的参考图片 ,我已经添加了Xamarin.Android.Support.V4和Xamarin.Android.Support.V13,这是我的SDK Manager Pic

Does anyone see anything that I missed? 有人看到我想念的东西吗?

A downloaded package (zip file) from Google is truncated/corrupt and does not inflate properly can cause this. 从Google下载的软件包(zip文件)被截断/损坏,并且未正确充气会导致这种情况。

Try: 尝试:


  • Remove the Nuget package and re-add it. 删除Nuget软件包,然后重新添加。 Perform a clean all/build all on your solution 在您的解决方案上执行全部清理/全部构建

Otherwise: 除此以外:


  • Check the following location: 检查以下位置:

C:\Users\[YourUserID]\AppData\Local\Xamarin\Android.Support.v4\[Version])

You can delete those files, restart Visual Studio and perform a clean all/build all on your solution and those support files will be downloaded and cached from Google again. 您可以删除这些文件,重新启动Visual Studio并在解决方案上执行全部清除/全部构建,这些支持文件将再次从Google下载并缓存。

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

相关问题 Xamarin Studio / Visual Studio Broken - 项目中不存在目标“Build”。 (MSB4057) - Xamarin Studio/Visual Studio Broken - The target “Build” does not exist in the project. (MSB4057) 名称在Visual Studio中不存在 - Name does not exist in Visual Studio Mac Visual Studio Xamarin-类型或名称空间“ Linq”在名称空间“系统”中不存在(您是否缺少程序集引用?) - Mac Visual Studio Xamarin - the type or namespace 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?) 初始化组件不存在且 Xamarin Forms Visual Studio 中未添加 xaml 文件 - Initialize Component does not exist and xaml file not added in Xamarin Forms Visual Studio Visual Studio不会生成事件-Xamarin Xaml - Visual Studio does not generate event - Xamarin Xaml Visual Studio概要分析.psess不存在或无效 - Visual Studio Profiling .psess does not exist or is invalid Visual Studio不存在于命名空间中,但添加了引用 - Visual studio does not exist in the namespace, but reference is added Visual Studio 命令面板不存在 - Visual Studio Command Palette does not exist Visual Studio,Xamarin,WebView - Visual studio, Xamarin, WebView Xamarin Visual Studio 中的 Android 模拟器不显示应用程序 - Android emulator in Xamarin Visual Studio does not show the app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM