首页 > 技术文章 > eclipse中修改工程的Android版本

jiangxin 2015-09-15 09:17 原文

项目根目录下project.properties的记录项目中所需要的环境信息,比如Android的版本等

project.properties示例如下:

[html] view plaincopy

  1. # This file is automatically generated by Android Tools. 
  2. # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 
  3. # This file must be checked in Version Control Systems. 
  4. # To customize properties used by the Ant build system edit 
  5. # "ant.properties", and override values to adapt the script to your 
  6. # project structure. 
  7. # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 
  8. #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 
  9. # Project target. 
  10. target=android-17 

将target=android-xx改为需要的版本即可

推荐阅读