CM11 native Browser import eclipse for debugging and running methods

Source: Internet
Author: User

1, first download from the official CM website, the native browser down.
You can import eclipse.
Then there will be a bunch of errors.

2, the V4,V13 support package, import. can be reduced by some.


3. Add the library file.
Copy the corresponding files from the compiled CM11 source out directory to the Browsereclipse systemlib path, as follows:
Systemlib, please put it in the project's Lib directory together.
Android-common_intermediates\classes.jar
Core_intermediates\classes.jar
Framework_intermediates\classes.jar

4, in the Eclispe to refresh the project, and then select the project, the right mouse button menu-build path-configure Build Path, in the Libraries page, select Add Library-user libraries-new, Enter the library name Systemlib and tick

Under the Input box, click System Library.
Go back to the User Libraries window, select the newly created systemlib, click the button "Add JARs" and add the five Classes.jar below the Systemlib\ folder.

5, back to the Java build path interface, select the order and Export page, select the new build Systemlib, click the top button, top to first, OK.

4. Block some code.
At this point, most of the errors have been resolved, only a few errors, the wrong place to block out, you can:
Masking Eventlogtags-related rows

5. Add a Java file to avoid run-time errors:
Syncstatecontentproviderhelper.java

6, there are some other errors, try to comment out, anyway you can run.

CM11 native Browser import eclipse for debugging and running methods

Related Article

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.