How do I add a library project to Android Studio?

前端 未结 30 3981
梦谈多话
梦谈多话 2020-11-21 04:24

How do I add a library project (such as Sherlock ABS) to Android Studio?

(Not to the old ADT Eclipse-based bundle, but to the new Android Studio.)

30条回答
  •  忘了有多久
    2020-11-21 05:13

    To add to the answer: If the IDE doesn't show any error, but when you try to compile, you get something like:

    No resource found that matches the given name 'Theme.Sherlock.Light'
    

    Your library project is probably compiled as an application project. To change this, go to:

    Menu File -> Project structure -> Facets -> [Library name] -> Check "Library module".

提交回复
热议问题