Unable to resolve target & #039; android-XX & #039; question ?, Resolveandroid-xx

Source: Internet
Author: User

Unable to resolve target 'android-xx ?, Resolveandroid-xx

When importing an android project, some errors and corresponding solutions are as follows:

1> "Unable to resolve target 'android-xx'" appears. The solution is to go to your android project and directory and find the project in this file. properties (or default. properties), find target = android-XX. This error occurs because your android environment does not match this, you only need to change the android version here to the android version configured on your machine, for example, target = android-15

2> In the activity class, "Remove @ Overrideannotation" is always displayed in some rewriting methods. solution: the main cause of this error is the compiler version, by default, the Java 1.5 compiler overwrites the method of the parent class and uses @ Override to describe it. However, 1.6 has been extended to the method of the interface; therefore, if you still compile with the Java 1.5 compiler, an error will occur. The default value is java1.5. You need to set it to 1.6 to open your eclipse, go to window> Preferences> Java> Compiler and change it to Java1.6.

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.