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

1、Open the command line

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

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

更多相关文章

  1. android 系统编译要求,官方资料
  2. Android官方架构组件ViewModel:从前世今生到追本溯源
  3. Google官方确认Android 冰激凌三明治即将发布
  4. Android官方DataBinding(三):RecyclerView 使用ViewDataBinding更新
  5. [置顶] Android官方文档系列(翻译)
  6. 【苦读官方文档】2.Android应用程序基本原理概述

随机推荐

  1. android中分割线的实现
  2. Android Canvas drawArc方法介绍
  3. Android调用Google Map
  4. Android常用开源项目
  5. js判断当前设备是 Android 还是 iOS
  6. Android demo倒计时原理(CountDownTimer
  7. android 长按键菜单
  8. android中Timer
  9. Android JNI入门第六篇——C调用Java
  10. 安卓高手应该精通那些内容