For example, their own finished project, the name is MyObject, need to export into jar package, let others project call, but their project also contains pictures, layout layouts, libs inside of the dependency package and so on;
Steps:
1.MyObject project needs "is library", as a class library. (Project right-properties-android page lower Library section select "Is Library", click OK on the line)
2. Create a new project, the name is random, I called mylib,packagename must be the same as the MyObject project. Then it is the "is library", and then the mylib inside the res and SRC directory deleted, no use
3.MyObject project "Clean" a bit, Then his bin directory will have a Myobject.jar file, copied to the Libs directory of the Mylib project, copy the Res folder of the MyObject project to Mylib, including the third-party jar or class library under the MyObject folder of Libs project, and copy to Myli b in the Libs directory, this time the new class library file is basically done, but, not directly to others, before use, there are important three steps
1. When using this mylib, the "Add Library" is required to add the Mylib project as a library
2. "Add jars" add mylib inside the Libs directory Myobject.jar add in.
3. Copy the Activity service privileges added to the configuration file of the MyObject project into the configuration file of your project.
Done
A project with a res resource file needs to be made into a jar package for others to use a workaround