Overview of problems with the Android 4.2 Project Import 5.0 SDK Eclipse Development environment

Source: Internet
Author: User


First of all, my Android SDK download situation, as shown, initially only 5.0, yesterday import 4.2 built project, a piece of red, made some configuration changes as follows:

1, I installed is JDK1. 8, so need to do as 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 re-add the library project


3, for example, because of yesterday only 5.0 of the SDK, the default 4.2 established by the project import, found the corresponding 4.2 of the SDK, the above project Build Target will be unselected, as long as the 5.0 of the SDK will be selected;

4, the project right-click Android Tools, Fix project Properties, this should have some overlap with the above, at least one point, do not manually change the project.properties configuration file in the following two items

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

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

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


Next, today downloaded the 4.2 SDK, want to simplify the project import operation, so that from the SVN check out the project can be used directly, but once again, the style of some of the parent type can not be found, from this issue to solve, to be sure, the project layout, style, etc. to the Android Library reference, are based on the version settings that are dependent on the project build Target setting in engineering.

In addition, the referenced APPCOMPAT_V7 library project used in the support library to be consistent with the current project, when a use of 5.0, one using 4.2, will be an error.

It is critical to carefully analyze and read the error output in the console.


Be free tomorrow, and then detail this part.


In addition, there is a Java application that references multiple external jars, as well as configuration files such as XML, in which the external jar plays, along with path issues such as XML, are resolved and later added.








Overview of problems with the Android 4.2 Project Import 5.0 SDK Eclipse Development environment

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.