进口android.support.v7.app.ActionBarDrawerToggle不能得到解决 [英] The import android.support.v7.app.ActionBarDrawerToggle cannot be resolved

查看:309
本文介绍了进口android.support.v7.app.ActionBarDrawerToggle不能得到解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用 ActionBarDrawerToggle 并得到错误:

I am trying to use the ActionBarDrawerToggle and getting the error:

进口android.support.v7.app.ActionBarDrawerToggle无法解析

它有没有问题导入V4类型,但据我所知,这是德precated并不起作用,因为我想。更进一步,我没有问题,与进口喜欢动作条 ActionBarActivity 其他V7类和它只有ActionBarDrawerToggle发生。

It got no problem importing the v4 type but as I understand, it is deprecated and doesn't function as I want to. Further more, I got no issue with importing other v7 classes like ActionBar or ActionBarActivity and it happens with the ActionBarDrawerToggle only.

如何解决这个问题(和类型)来解决?

How can this issue (and type) be resolved?

推荐答案

您需要遵循一些简单的步骤:

Some simple steps you need to follow:


  1. 转到您的项目在导航器中,右键单击属性。

  2. 转到左边的Java构建路径选项卡。

  3. 转至库选项卡上的顶部。

  4. 单击添加外部JAR。

  5. 转到您的ADT包文件夹,​​请
    SDK /演员/安卓/支持/ V7 /应用程序兼容性/库。

  6. 选择文件Android的支持-V7-appcompat.jar

  7. 转到订单和出口,并检查旁边的框,您的新罐子。

  8. 单击确定。

这篇关于进口android.support.v7.app.ActionBarDrawerToggle不能得到解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆