[Android]关于target=android-n

来源:互联网 发布:linux find mtime 1 编辑:程序博客网 时间:2024/06/06 10:57

# 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-8

如上,在project.properties文件中可以看到工程的目标属性


最近在eclipse中导入Android例子的时候,发现有报"Android Unable to resolve target 'android-8' ",后来看了下,应该是ADK的版本不同,具体的对应关系可以在Android SDK Manager中看到:


比如android-8就对应Android2.2,若果没有下载或依赖Android2.2,则可能会提示前面的错误