简体   繁体   中英

ToolBar Widget in Material Design

Hi I am trying to learn Material design and was stuck up with the Toolbar code.I am confused in which library to use and Why its showing this error

Caused by: android.view.InflateException: Binary XML file line #15: Error inflating class android.support.design.widget.Toolbar

For this I am using the support libraries:

compile 'com.android.support:design:22.2.0'
compile 'com.android.support:recyclerview-v7:22.2.0'

If u have any idea of how to solve this error plz share me.Thanks in advance

You need appCompat Support library

compile 'com.android.support:appcompat-v7-XXXX // XXXX is the version , choose latest.

Couple of more suggestions, if you can't make it work by adding above Services.

  • Add all services of the same version.
  • Clean the project.

More suggestion in below link, this is similar question.

Reference

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM