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.