[Android]關於target=android-n

# 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,則可能會提示前面的錯誤

發佈了33 篇原創文章 · 獲贊 5 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章