1. 设置环境变量
1)jdk: 设置 JAVA_HOME
2)ant: path
3)ndk path
4)android sdk tools & platform-tool
2.ant
android update --target 1 -p .
如何获得 target id? --> android list targets
3. ndk-build
4.ant debug/release install
转载于:https://my.oschina.net/lyr/blog/118019