1. Project Export APK Anti-compilation to res/values/directory find ' public.xml ' and ' ids.xml ' two files;
2, the project is set to Libray project;
3, the project "clean ...", if there is a switch statement error, generally to modify into if-else;
[ Select Switch Entire statement -right--quick fix-convert ' switch ' to ' if-else ']
4, copy the above mentioned ' Public.xml ' and ' Ids.xml ' two files to the project Res/values directory, this step is to define the resource ID, to prevent the resource file referenced in the library project cannot be found;
5, Replace "@+id/" for "@id/";
6, modify the resource naming in the project, you can see the project Gen directory to generate a project R file, which contains the project references to all resources, according to the generated R.java file rename the project all references to the resources (here can be added prefix). In order to prevent duplicate definitions when a third-party project references a library project, this step is a great effort, and it is recommended to write a find replacement program.
Android a complete project into the SDK provided to third party embedding