Using Support Design Library in Eclipse

♀尐吖头ヾ 提交于 2019-11-30 15:19:16
CommonsWare

Through Eclipse's project properties dialog (Project → Properties), not only can you attach to a library project, but you can mark a project as being a library project.

Normally, when you import a project, that information is pulled from the project.properties file. Alas, the Android Support Design Project does not have a project.properties file, and Eclipse's stock import process therefore assumes that you are importing an app.

Just go into Project → Properties → Android and mark the imported library as being a library, via the "Is Library" checkbox. Then, you can attach it to the app that wishes to use the library.

Note that you will need to repeat this "Is Library" nonsense with future editions of the library, when you import those to replace your existing one, when Google ships updates to the library.

All of this headache will go away when you switch to Android Studio (adding libraries is much easier), though it will probably be replaced by new and exciting headaches. :-)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!