Eclipse Import Framework App Error

Source: Internet
Author: User

Android Import source Packages apps error


After downloading the source code, and then Linux in the framework of the compilation of the app module is not error, but loaded into eclipse there will be many errors.
Google provides users with the SDK is castrated version of the inability to use the hidden API, if you want to use the system API such as import Android.os.AsyncResult;
First you need to download the source code, and then compile. After the compilation is complete
Most of the system APIs are available in Out/target/common/obj/java_libraries/framework_intermediates to copy Classer.jar to the Libs folder in Eclipse.
But some APIs, like Com.android.internal.telephony.Phone, might be somewhere else.

Find a dependent Telephony-common through the. mk file in the app directory

Local_path: = $ (call My-dir) include $ (clear_vars) Local_module_tags: = Optionallocal_src_files: = $ (call All-java-files-under, src) local_package_name: = Deviceinfo<span style= "color: #ff6666;" >local_java_libraries + = Telephony-common</span>local_certificate: = Platforminclude $ (BUILD_PACKAGE)


Or search through the shell command Phone.class find the place for this API call and find the corresponding Jar package mine is in
Java_libraries under the Telephony-common-intermediates directory

Find all the needed classes.jar and put it into the Libs in the project.

Eclipse Import Framework App Error

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.