且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何添加“Android设计支持库”使用ADT插件到Eclipse?

更新时间:2023-11-17 19:01:34

Before use the design support library, you have to import support-v7-appcompat library from android-sdks\extras\android\support\v7\appcompat. Then, you have to:

  • create an android library project in eclipse for design support library
  • put the contents of directory android-sdks\extras\android\support\design in the design support library project
  • Link appcompat-v7 library to design support library project
  • Link support library project from your project.

Note: If you can't find the design folder you might want to try this location instead: android-sdk\extras\android\m2repository\com\android\support\design

You can not use directly the jar android-support-design.jar because you need some resources too (this is the reason of aar format).

For more info just check Error in styles_base.xml file - android app - No resource found that matches the given name 'android:Widget.Material.ActionButton'