我有一个生成Android APK文件的问题。
当我运行ant debug
时,编译工作正常,但当我运行ant debug
时,出现以下错误:
错误提示:
iMac:proj.android smartmind$ ant debug
Buildfile: /Users/smartmind/Works/Smallthing/cocos2d-x/samples/HelloCpp/proj.android/build.xml
BUILD FAILED
/Users/smartmind/Works/Smallthing/cocos2d-x/samples/HelloCpp/proj.android/build.xml:46: sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var
Total time: 0 seconds
我不知道问题出在哪里。
sdk.dir
的值确实正确之外,我没有其他建议。 - CommonsWare