building apk running: '/Users/sunfei/Desktop/GameDevTools/adt-bundle-mac-x86_64-20140702/sdk/tools/android update project -t android-19 -p /Users/sunfei/work_space/CocosCodeIDE/LuaPrj/CocosLuaGameoooo/frameworks/runtime-src/proj.android' Can't find "target" in file "/Users/name/work_space/CocosCodeIDE/LuaPrj/CocosLuaGameoooo/frameworks/runtime-src/proj.android/../../cocos2d-x/cocos/platform/android/java/project.properties"
name为自己用户名,与此问题无关</span>
网络上找了也没有现成答案,在此感谢cocoachina里的baozi_py的回复。
下面以我的问题为例,说一下具体步骤,希望可以帮到新手朋友们:
当用code IDE新建一个lua工程后,打开finder,目录结构如图
注意:publish开始是没有的,查看frameworks/runtime-src/proj.android/project.properties的内容,我的target=android-19
然后再退回,查看frameworks/cocos2d-x/cocos/platform/android/java/project.properties的内容,默认的是:
改成target=android-19
然后回到IDE,右键项目Refresh,从新打包OK,install运行到安卓手机