Cannot resolve symbol DrawerLayout

前端 未结 3 2278
梦如初夏
梦如初夏 2021-02-19 16:55

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

My code seems to be ok,

3条回答
  •  我在风中等你
    2021-02-19 17:05

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

    For Android Studio:

    First of all you need to add External Jar

    • 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.

    For Eclipse:

    Refer this link, Click here

提交回复
热议问题