Overview of issues in the Eclipse development environment for Android 4.2 Project Import 5.0 SDK

Source: Internet
Author: User

Overview of issues in the Eclipse development environment for Android 4.2 Project Import 5.0 SDK

The beautiful Life of the Sun Vulcan (http://blog.csdn.net/opengl_es)

This article follows "Attribution-non-commercial use-consistent" authoring public agreement

Reprint Please keep this sentence: Sun Vulcan's Beautiful Life-this blog focuses on Agile development and mobile and IoT device research: IOS, Android, HTML5, Arduino, Pcduino , or else. From this blog article refused to reprint or re-reproduced, thank you for your cooperation.


First of all. Download of my Android SDK. As you can see. At first there was only 5.0, and yesterday imported 4.2 builds of project. A piece of red, made some configuration changes such as the following:

1, I installed is JDK1. 8, so you need to do something like change: Right-click on Item-> Property->java compiler

Change the value of the "Compiler compliance Level" item from 1.6 to 1.8;


2. Delete and join library project again


3, for example, because yesterday only 5.0 of the SDK, the default 4.2 established by project import came in. Unable to find the corresponding 4.2 SDK, the above Project Build Target will be unselected, just select the 5.0 SDK to be able;

4. Fix Project Properties, right-click Android Tools, on project. The role of this should be somewhat overlapping, at least one point. No manual changes to the following two items in the Project.Properties configuration file

Target=android-21
android.library.reference.1=. /.. /.. /.. /android/workspace-2/appcompat_v7

However, you only use this repair tool. Does not necessarily solve this two-point content, and sometimes have to manually implement the above 1th, 2, 3 steps to truly solve the problem;

5, the last is the most critical point, sometimes do not do, really can not see that has been repaired, that is clean and auto rebuild!

!!


Next, download the 4.2 SDK today. You want to simplify the project import operation so that you can check out project from SVN to work directly, but once again the problem arises, and some of the parent types in the style cannot be found and resolved from this issue. Be sure to say that the layout in project. The references to the Android library, such as styles, are based on the version number settings that are dependent on the project build Target setting in project.

In addition, the supported libraries used in the referenced APPCOMPAT_V7 library project are consistent with the current project, and when one uses 5.0 and one uses 4.2, an error is made.

Careful analysis and reading of error output in the console is critical.


Be free tomorrow, and then detail this part.


In addition, another reference to multiple external jars, and Java applications that use configuration files such as XML. When packaging, these external jar play, as well as XML and other path problem resolution, may be added in succession.









Overview of issues in the Eclipse development environment for Android 4.2 Project Import 5.0 SDK

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.