[英]The android.support.design.widget.CoordinatorLayout is not declared
I'm creating new android application using Xamarin in Visual Studio 2015. I added the component Android Support Design Library 23.4.0.1 to my Projects (Components) In my layout (Main.axml) I copy and past from the Getting Started https://components.xamarin.com/gettingstarted/xamandroidsupportdesign But I get error The android.support.design.widget.CoordinatorLayout is not declared 我正在Visual Studio 2015中使用Xamarin创建新的android应用程序。我在我的项目(组件)中添加了组件Android支持设计库23.4.0.1。在布局(Main.axml)中,我从入门https://复制并过去。 /components.xamarin.com/gettingstarted/xamandroidsupportdesign但出现错误android.support.design.widget.CoordinatorLayout未声明
Any ideas? 有任何想法吗?
Maxin.axml: Maxin.axml:
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.Toolbar
app:layout_scrollFlags="scroll|enterAlways">
<android.support.design.widget.TabLayout
app:layout_scrollFlags="scroll|enterAlways" />
</android.support.v7.widget.Toolbar>
</android.support.design.widget.AppBarLayout>
</android.support.design.widget.CoordinatorLayout>
Try uninstalling the Support Libraries and then reinstalling them again. 尝试卸载支持库,然后再次重新安装它们。
If that doesn't work, try going into C:\\Users\\{Your User}\\AppData\\Local\\Xamarin
and delete all folders in there. 如果这不起作用,请尝试进入
C:\\Users\\{Your User}\\AppData\\Local\\Xamarin
并删除其中的所有文件夹。 Then do a Clean and Rebuild in Visual Studio. 然后在Visual Studio中进行清理并重建。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.