当前位置: 首页 > 知识库问答 >
问题:

如何设置Visual Studio2013为使用Android支持库V7使用导航抽屉?

宓弘壮
2023-03-14
Warning    1   iCCP: Not recognizing known sRGB profile that has been edited   C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\res\drawable-mdpi\ic_drawer.png    NavigationDrawer
Warning 2   iCCP: Not recognizing known sRGB profile that has been edited   C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\res\drawable-hdpi\ic_drawer.png    NavigationDrawer
Warning 3   iCCP: Not recognizing known sRGB profile that has been edited   C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\res\drawable-mdpi\ic_drawer.png    NavigationDrawer
Warning 4   iCCP: Not recognizing known sRGB profile that has been edited   C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\res\drawable-hdpi\ic_drawer.png    NavigationDrawer
Error   5    error: package android.support.v7.widget.RecyclerView does not exist
    extends android.support.v7.widget.RecyclerView.Adapter
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\md5bcb996c917facdc1c00eade7083be557\PlanetAdapter.java 5   48  NavigationDrawer
Error   6    error: package android.support.v7.widget.RecyclerView does not exist
    public android.support.v7.widget.RecyclerView.ViewHolder onCreateViewHolder (android.view.ViewGroup p0, int p1)
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\md5bcb996c917facdc1c00eade7083be557\PlanetAdapter.java 28  47  NavigationDrawer
Error   7    error: package android.support.v7.widget.RecyclerView does not exist
    private native android.support.v7.widget.RecyclerView.ViewHolder n_onCreateViewHolder (android.view.ViewGroup p0, int p1);
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\md5bcb996c917facdc1c00eade7083be557\PlanetAdapter.java 33  55  NavigationDrawer
Error   8    error: package android.support.v7.widget.RecyclerView does not exist
    public void onBindViewHolder (android.support.v7.widget.RecyclerView.ViewHolder p0, int p1)
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\md5bcb996c917facdc1c00eade7083be557\PlanetAdapter.java 36  70  NavigationDrawer
Error   9    error: package android.support.v7.widget.RecyclerView does not exist
    private native void n_onBindViewHolder (android.support.v7.widget.RecyclerView.ViewHolder p0, int p1);
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\md5bcb996c917facdc1c00eade7083be557\PlanetAdapter.java 41  80  NavigationDrawer
Error   10   error: package android.support.v7.widget.RecyclerView does not exist
    extends android.support.v7.widget.RecyclerView.ViewHolder
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\md5bcb996c917facdc1c00eade7083be557\PlanetAdapter_ViewHolder.java  5   48  NavigationDrawer
Error   11   error: package android.support.v7.widget.RecyclerView.ItemAnimator does not exist
        android.support.v7.widget.RecyclerView.ItemAnimator.ItemAnimatorFinishedListener
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_ItemAnimator_ItemAnimatorFinishedListenerImplementor.java  8   54  NavigationDrawer
Error   12   error: package android.support.v7.widget.RecyclerView does not exist
        android.support.v7.widget.RecyclerView.OnItemTouchListener
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_OnItemTouchListenerImplementor.java    8   41  NavigationDrawer
Error   13   error: package android.support.v7.widget does not exist
    public boolean onInterceptTouchEvent (android.support.v7.widget.RecyclerView p0, android.view.MotionEvent p1)
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_OnItemTouchListenerImplementor.java    28  65  NavigationDrawer
Error   14   error: package android.support.v7.widget does not exist
    private native boolean n_onInterceptTouchEvent (android.support.v7.widget.RecyclerView p0, android.view.MotionEvent p1);
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_OnItemTouchListenerImplementor.java    33  75  NavigationDrawer
Error   15   error: package android.support.v7.widget does not exist
    public void onTouchEvent (android.support.v7.widget.RecyclerView p0, android.view.MotionEvent p1)
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_OnItemTouchListenerImplementor.java    36  53  NavigationDrawer
Error   16   error: package android.support.v7.widget does not exist
    private native void n_onTouchEvent (android.support.v7.widget.RecyclerView p0, android.view.MotionEvent p1);
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_OnItemTouchListenerImplementor.java    41  63  NavigationDrawer
Error   17   error: package android.support.v7.widget.RecyclerView does not exist
        android.support.v7.widget.RecyclerView.OnScrollListener
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_OnScrollListenerImplementor.java   8   41  NavigationDrawer
Error   18   error: package android.support.v7.widget.RecyclerView does not exist
        android.support.v7.widget.RecyclerView.RecyclerListener
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_RecyclerListenerImplementor.java   8   41  NavigationDrawer
Error   19   error: package android.support.v7.widget.RecyclerView does not exist
    public void onViewRecycled (android.support.v7.widget.RecyclerView.ViewHolder p0)
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_RecyclerListenerImplementor.java   27  68  NavigationDrawer
Error   20   error: package android.support.v7.widget.RecyclerView does not exist
    private native void n_onViewRecycled (android.support.v7.widget.RecyclerView.ViewHolder p0);
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\mono\android\support\v7\widget\RecyclerView_RecyclerListenerImplementor.java   32  78  NavigationDrawer
Error   21   error: cannot find symbol
        if (getClass () == PlanetAdapter.class)
  symbol:   method getClass()
  location: class PlanetAdapter
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\md5bcb996c917facdc1c00eade7083be557\PlanetAdapter.java 23  7   NavigationDrawer
Error   22   error: method Activate in class TypeManager cannot be applied to given types;
            mono.android.TypeManager.Activate ("NavigationDrawer.PlanetAdapter, NavigationDrawer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "", this, new java.lang.Object[] {  });
  required: String,String,Object,Object[]
  found: String,String,PlanetAdapter,Object[]
  reason: actual argument PlanetAdapter cannot be converted to Object by method invocation conversion
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\md5bcb996c917facdc1c00eade7083be557\PlanetAdapter.java 24  28  NavigationDrawer
Error   23   error: cannot find symbol
        if (getClass () == PlanetAdapter_ViewHolder.class)
  symbol:   method getClass()
  location: class PlanetAdapter_ViewHolder
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\md5bcb996c917facdc1c00eade7083be557\PlanetAdapter_ViewHolder.java  20  7   NavigationDrawer
Error   24   error: method Activate in class TypeManager cannot be applied to given types;
            mono.android.TypeManager.Activate ("NavigationDrawer.PlanetAdapter/ViewHolder, NavigationDrawer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "Android.Views.View, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065", this, new java.lang.Object[] { p0 });
  required: String,String,Object,Object[]
  found: String,String,PlanetAdapter_ViewHolder,Object[]
  reason: actual argument PlanetAdapter_ViewHolder cannot be converted to Object by method invocation conversion
    C:\Users\superfast\Desktop\New folder\NavigationDrawer\obj\Debug\android\src\md5bcb996c917facdc1c00eade7083be557\PlanetAdapter_ViewHolder.java  21  28  NavigationDrawer

共有1个答案

拓拔麒
2023-03-14

我能够拉下这个包,让它工作没有任何变化。你恢复核包裹了吗?

此外,您可能希望在还原包后对解决方案进行完全清理和重新生成。

我在博客中介绍了一种使用设计支持库实现导航抽屉的新方法:https://blog.xamarin.com/add-veautifice-material-design-with-the-android-support-design-library/

 类似资料:
  • 我在我的项目中使用了Android Studio 我想在我的android项目中使用自定义库 compile(': myCustAppcompat-v7') compile'com.android.support: design: 23.2.0' : 我有两个库,它们来自: 我该怎么修? 谢谢

  • 问题内容: 我是Android的新手。 我正在为Android应用程序(位于现有的多模块项目中)设置一个maven模块,该模块使用Google支持库(v4,v7,v13)。使它与Maven一起使用的最合适的方法是什么。 我希望我的项目能够使用Jenkins(Maven)进行构建,因此我无法链接任何特定于IDE的项目或任何非Maven依赖项的方式。 在Jenkins中组合maven / gradle

  • 我试图遵循谷歌最新的良好实践,用导航组件实现单个活动应用程序。 然而,在阅读了整个导航留档后,我仍然认为有很多情况下,他们没有解决。 例如,我应该如何实现以下情况: 应用程序在闪屏中启动。然后在加载后进入新闻片段。 注意:闪屏应该从后台弹出,因为它不应该再出现了。 然而,部分中的一些片段可以导航到一个新区域,该区域应该有一个后退按钮(而不是抽屉)。

  • 问题内容: 我有一个Android Maven项目,并且难以使用ActionBar保持兼容性。 在使用 ActionBarSherlock 之前,但我看到Google发布了 v7支持库 将具有相同的目标。我决定删除对ActionBarSherlock的依赖,并使用v7。我尝试了几种方法: 1-在Eclipse IDE上将文件夹“ android-sdk \ extras \ android \ s

  • 问题内容: 我知道这些类型的问题已经在这里,但仍然找不到这个问题的答案: 我已经创建了一个应用程序,并使用了由该应用程序自动创建的导航抽屉(AndroidStudio) 这是我所拥有的: 还有更多: 我想使用导航抽屉中的按钮显示另一个片段。我想使用此代码,所以请不要向我发送任何制作自己的抽屉的指南或教程。 现在的问题是,我该怎么放 ,并在情况下,我想打开另一个片段?谢谢。 还有一个问题: 如何添加

  • 1-将文件夹“android-sdk\extras\Android\support\v7\appcompat”作为Eclipse IDE上的“现有Android代码导入工作区”导入,并将其注册为库。但是项目停止了识别由框架AndroidAnnotations生成的类。例如loginactivity_ 2-使用显示此问题的存储库添加maven appcompat-v7依赖项。但是我无法编译项目,甚至