android报错Unable to resolve target 'android-14'
当用eclipse 导入一个已经存在的项目时,经常会遇见如下错误:
Unable to resolve target 'android-XX' 类似的错误。
这是因为导入的项目代码中project.properties 的 Project target 设置与当前eclipse环境设置不一致所致。
解决办法具体如下:
打开项目代码中的Project target,将
# Project target. target=android-14
修改为你当前支持的ADK版本即可。
下面是我的环境支持,project.propertis文件,内容具体如下:
# This file is automatically generated by Android Tools. # Do not modify this file -- YOUR CHANGES WILL BE ERASED! # # This file must be checked in Version Control Systems. # # To customize properties used by the Ant build system edit # "ant.properties", and override values to adapt the script to your # project structure. # # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt # Project target. target=android-19