Cocos2d-x: 未找到工程 'xx/xxx' 可用的 Android 目标平台。 Android 目标平台版本应该大于或等于 25

  问题:使用控制台打包时直接报错:"未找到工程 'xx/xxx' 可用的 Android 目标平台。 Android 目标平台版本应该大于或等于 25"。到时无法继续打包。

  解决方法:打开工程中的 project.properties 修改 target-xx处 小于自己 android platform 即可。

  

 1 # This file is automatically generated by Android Tools.
 2 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
 3 #
 4 # This file must be checked in Version Control Systems.
 5 #
 6 # To customize properties used by the Ant build system use,
 7 # "ant.properties", and override values to adapt the script to your
 8 # project structure.
 9 
10 # Project target.
11 target=android-20
12 
13 android.library=false

 

posted @ 2017-05-04 15:55  Kim_0908  阅读(1080)  评论(0编辑  收藏  举报