When you use eclipse to import mtk android2.36 source code, the package name android. OS. loginerror cannot be found.

Source: Internet
Author: User

In the past, it was very smooth to import 2.1 source code under eclipse, and there was basically no error. I got the mtk6573 (android2.36) source code today. When importing data in eclipse, I found that android cannot be introduced in many places. OS. logoff error, found in 2.1 source code, in framework /... /The OS directory is logoff. java file, but in android2.36, this file does not exist, but logoff is found under utils. cpp file. The new version may have changed logoff to Navite code. The source code can be correctly compiled in the command line. Therefore, it is no problem to determine the source code. It may be necessary to introduce a jar library, then introduce the compiled Framework jar and solve the problem. The procedure is as follows:

Right-click the project, select "properties", select java build path, select the Libraris page, execute Add Jars, and Add the following jar from the android source code directory:

Out \ target \ common \ obj \ JAVA_LIBRARIES \ framework_intermediates \ classes. jar

 

Note: The premise of the above operations is that all source code must be compiled in linux first, otherwise the above jar file cannot be found.

 

From heart _

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.