1. A project must be declared as the IS library. Use the library's project to import the library.
2. The name of the activity in the library's manifect must be clearly defined to avoid being found. Also in the project you have to declare the activity of the referenced library (with the same package name).
3. The project can use all the resources under the library's res, but the files inside the assets cannot. For example, the library code will be accessed in the assets of a picture, if not in the project also save a picture, will cause an error, because the file cannot be found. The reason is that the system takes priority to the project assets inside to find instead of going to the library.
4. Resources can be overwritten. For example, two projects are common to a library. For the same resource picture file, there are two versions of two items. Then you just need to use your own images in your own res. Be aware, however, that the image must be the same name (including the extension). That is, image.jpg cannot be replaced by Image.png.