无法解析符号DrawerLayout符号、DrawerLayout

由网友(暮光是深岛)分享简介:我想实现的抽屉式导航栏,如下所示:http://developer.android.com/training/implementing-navigation/nav-drawer.html#topI'm trying to implement the Navigation Drawer as shown here:...

我想实现的抽屉式导航栏,如下所示:http://developer.android.com/training/implementing-navigation/nav-drawer.html#top

I'm trying to implement the Navigation Drawer as shown here: http://developer.android.com/training/implementing-navigation/nav-drawer.html#top

我的code似乎是确定,和我的最小和目标水平在我的清单比赛的例子,但它告诉我,它无法找到以下三个引用

My code seems to be ok, and My minimum and target levels in my manifest match the example, but it's telling me it can't find the following three references

import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;

推荐答案

可能是你已经找到你的答案,但我认为它对于那些谁仍然想知道。所以,这里是我的答案,

May be you have found your answer but i think its for those who still wants to know. so, here's my answer,

对于Android的工作室:

首先,你需要添加外部JAR

First of all you need to add External Jar 在机器人工作室转至文件 - > 项目结构 - > 模块 - > 依赖 - > + 符号 - > 库的依赖关系 现在,搜索支持库。你会发现这样的事情 com.android.support:support-v13 现在,选择Jar文件名为支持-V13 (不管是什么版本),然后单击确定。

In android studio go to File-> Project Structure -> Modules -> Dependencies -> + symbol -> Library Dependency. Now search for support library. you will find something like this com.android.support:support-v13 Now, select Jar file named support-v13 (Whatever the version is) and click OK.

现在,你会看到,没有更多象这样的错误。

Now, you will see, no more errors like this.

对于Eclipse:

请参考这个链接,Click这里

阅读全文

相关推荐

最新文章