Android Development-------------Unable to resolve target ' android-19 '

Source: Internet
Author: User

After reloading the Ecplise+atd+android SDK, the Android project that was written before the Ecplise workspace import will have errors, most of which are incompatible with the SDK version, with the following error message:
Error:unable to resolve target android-19



Workaround: Modify the project directory under the project.properties content in the file T Number of arget=android-19 the word to the Android SDK version of your machine.


:



When you use a later version of the SDK and then import a previous version of project, you experience some compatibility issues.
(1) Unable to resolve target android-5
because the version of Sdk,api that is currently in use in this machine is 7, and the imported project uses 2.0 developed and its API version is 5. The
needs to change target=android-5 in Project.Properties to target=android-7.
Note, however, that you also need to synchronize the <USES-SDK android:minsdkversion= "5"/> in Androidmanifest.xml, or you will be warned that the version used in the compilation is too low.
(2) After completion, a new error occurred in the compilation: Conversion to Dalvik format failed with error 1
This is related to the loaded SDK, by right-selecting the project build path, Configure build path .... library found in the imported jars in addition to an Android 2.1-update1 also have a folder under the same path item, remove it, clean and then compile it is no problem.

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.