Android a complete project into the SDK provided to third party embedding

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.