我的xamarin droid项目在更新到xamarin.Android.Support.V7.AppCompact
后失败并出现大量错误要使用mvvmcross在我的droid项目中获取自定义工具栏,我编写了以下代码,其中包含了问题和问题
public class MantraasView : MvxAppCompatActivity<Core.ViewModels.MantraasViewModel>
{
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
SetContentView(Resource.Layout.MantraasView);
var toolbar = FindViewById<Toolbar>(Resource.Id.toolbar);
SetSupportActionBar(toolbar);
}
}
然后我尝试安装appcompact v7,但未能说目标版本是6, 然后我更改了目标版本并更新了这些软件包并进行了安装 mvvmcross.droid.support.v4 mvvmcross.droid.support.v7.Appcompact从那时起我收到以下错误。
错误:OnAdapterChangeListener在ViewPager中不公开;不可能是 从外包装进入 android.support.v4.view.ViewPager.OnAdapterChangeListener Japam.Droid D:\ sourcecode \ Japam \ Japam.Droid \ obj \ Debug \ android \ src \ mono \ android \ support \ v4 \ view \ ViewPager_OnAdapterChangeListenerImplementor.java
错误:找不到符号 android.support.v4.app.SharedElementCallback.OnSharedElementsReadyListener symbol:类OnSharedElementsReadyListener位置:类 SharedElementCallback Japam.Droid D:\ sourcecode \ Japam \ Japam.Droid \ obj \ Debug \ android \ src \ mono \ android \ support \ v4 \ app \ SharedElementCallback_OnSharedElementsReadyListenerImplementor.java
错误:找不到符号 android.support.v4.widget.SearchViewCompat.OnQueryTextListener
symbol:类OnQueryTextListener位置:类 SearchViewCompat Japam.Droid D:\ sourcecode \ Japam \ Japam.Droid \ obj \ Debug \ android \ src \ mono \ android \ support \ v4 \ widget \ SearchViewCompat_OnQueryTextListenerImplementor.java错误:找不到符号 android.support.v4.widget.SearchViewCompat.OnCloseListener符号: class OnCloseListener location:class SearchViewCompat Japam.Droid D:\ sourcecode \ Japam \ Japam.Droid \ obj \ Debug \ android \ src \ mono \ android \ support \ v4 \ widget \ SearchViewCompat_OnCloseListenerImplementor.java
错误:找不到符号 android.support.v7.widget.MenuItemHoverListener符号:class MenuItemHoverListener位置:包 android.support.v7.widget Japam.Droid D:\ sourcecode \ Japam \ Japam.Droid \ obj \ Debug \ android \ src \ mono \ android \ support \ v7 \ widget \ MenuItemHoverListenerImplementor.java
错误:包android.support.v4.view.AsyncLayoutInflater没有 存在 android.support.v4.view.AsyncLayoutInflater.OnInflateFinishedListener Japam.Droid D:\ sourcecode \ Japam \ Japam.Droid \ obj \ Debug \ android \ src \ mono \ android \ support \ v4 \ view \ AsyncLayoutInflater_OnInflateFinishedListenerImplementor.java
错误:找不到符号 android.support.v4.view.accessibility.AccessibilityManagerCompat.AccessibilityStateChangeListener symbol:class AccessibilityStateChangeListener location:class AccessibilityManagerCompat Japam.Droid D:\ sourcecode \ Japam \ Japam.Droid \ obj \ Debug \ android \ src \ mono \ android \ support \ v4 \ view \ accessibility \ AccessibilityManagerCompat_AccessibilityStateChangeListenerImplementor.java
错误:找不到符号 android.support.v4.view.accessibility.AccessibilityManagerCompat.TouchExplorationStateChangeListener 符号:类TouchExplorationStateChangeListener位置:类 AccessibilityManagerCompat Japam.Droid D:\ sourcecode \ Japam \ Japam.Droid \ obj \ Debug \ android \ src \ mono \ android \ support \ v4 \ view \ accessibility \ AccessibilityManagerCompat_TouchExplorationStateChangeListenerImplementor.java