本文介绍了Xamarin-未找到类(Android支持库)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用AppCompat向后兼容实现Material Design.

I'm trying to implement Material Design with backward compatibility using AppCompat.

遵循教程.

但是我遇到了以下错误

Error 1 error: package android.support.v4.app.FragmentManager does not existandroid.support.v4.app.FragmentManager.OnBackStackChangedListenerC:\Users\Italo\Documents\Xamarin\TemaMaterial\TemaMaterial\obj\Debug\android\src\mono\android\support\v4\app\FragmentManager_OnBackStackChangedListenerImplementor.java 8 41 TemaMaterialError 2 error: package android.support.v4.content.Loader does not existandroid.support.v4.content.Loader.OnLoadCompleteListenerC:\Users\Italo\Documents\Xamarin\TemaMaterial\TemaMaterial\obj\Debug\android\src\mono\android\support\v4\content\Loader_OnLoadCompleteListenerImplementor.java 8 36 TemaMaterialError 3 error: package android.support.v4.content does not existpublic void onLoadComplete (android.support.v4.content.Loader p0, java.lang.Object p1)C:\Users\Italo\Documents\Xamarin\TemaMaterial\TemaMaterial\obj\Debug\android\src\mono\android\support\v4\content\Loader_OnLoadCompleteListenerImplementor.java 27 56 TemaMaterial

Error 1 error: package android.support.v4.app.FragmentManager does not existandroid.support.v4.app.FragmentManager.OnBackStackChangedListenerC:\Users\Italo\Documents\Xamarin\TemaMaterial\TemaMaterial\obj\Debug\android\src\mono\android\support\v4\app\FragmentManager_OnBackStackChangedListenerImplementor.java 8 41 TemaMaterialError 2 error: package android.support.v4.content.Loader does not existandroid.support.v4.content.Loader.OnLoadCompleteListenerC:\Users\Italo\Documents\Xamarin\TemaMaterial\TemaMaterial\obj\Debug\android\src\mono\android\support\v4\content\Loader_OnLoadCompleteListenerImplementor.java 8 36 TemaMaterialError 3 error: package android.support.v4.content does not existpublic void onLoadComplete (android.support.v4.content.Loader p0, java.lang.Object p1)C:\Users\Italo\Documents\Xamarin\TemaMaterial\TemaMaterial\obj\Debug\android\src\mono\android\support\v4\content\Loader_OnLoadCompleteListenerImplementor.java 27 56 TemaMaterial

表示该软件包不存在,但存在.我仍然无法添加图片,因此,这是链接

It says that the package does not existe, but it exists.I still can't add images, so, here is the link

推荐答案

显然,由于zip文件android_m2repository_r14已损坏,因此出现了问题.因此必须手动下载并在%localappdata%\Xamarin\Android.Support.v4%localappdata%\Xamarin\Android.Support.v7.AppCompat文件夹中解压缩

Apparently the problem occur because the zip file android_m2repository_r14 is corrupted. So is necessary download manually and unzip at %localappdata%\Xamarin\Android.Support.v4 and %localappdata%\Xamarin\Android.Support.v7.AppCompat folders

我还安装了适用于Android SDK的Google API和源代码

I also installed Google APIs and Sources for Android SDK

这篇关于Xamarin-未找到类(Android支持库)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 11:47