android的ant脚本自动生成模板

参考android官方指导:http://developer.android.com/tools/sdk/ndk/overview.html

1、Open the command line

2、Change to the <ndk-root>/samples/hello-jni directory.

3、Run the following command to generate a build.xml file:

D:\work\android\android-ndk-r8c\samples\hello-jni>android update project -p . -s
Updated local.properties
Updated file D:\work\android\android-ndk-r8c\samples\hello-jni\proguard.cfg
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android.bat update' command.

注意:project的project.properties和default.properties目标需要大于android1.5,例如target=android-10

你可能感兴趣的:(android的ant脚本自动生成模板)