文章标题
来源:互联网 发布:油汀电热膜哪个好 知乎 编辑:程序博客网 时间:2024/04/30 10:22
Error:Execution failed for task ‘:app:buildNative’. > A problem occurred starting process ‘command ‘C:\NDK/ndk-build”
运行有native库调用的项目,出现该错,原build文件中,task代码如下
task buildNative(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = android.ndkDirectory commandLine "$ndkDir/ndk-build", '-C', file('src/main/jni').absolutePath, // Change src/main/jni the relative path to your jni source '-j', Runtime.runtime.availableProcessors(), 'all', 'NDK_DEBUG=0' } task cleanNative(type: Exec, description: 'Clean JNI object files') { def ndkDir = android.ndkDirectory commandLine "$ndkDir/ndk-build", '-C', file('src/main/jni').absolutePath, // Change src/main/jni the relative path to your jni source 'clean' }
因为windows操作环境下, commandLine “
task buildNative(type: Exec, description: 'Compile JNI source via NDK') { def ndkDir = android.ndkDirectory commandLine "$ndkDir/ndk-build.cmd", '-C', file('src/main/jni').absolutePath, // Change src/main/jni the relative path to your jni source '-j', Runtime.runtime.availableProcessors(), 'all', 'NDK_DEBUG=0' } task cleanNative(type: Exec, description: 'Clean JNI object files') { def ndkDir = android.ndkDirectory commandLine "$ndkDir/ndk-build.cmd", '-C', file('src/main/jni').absolutePath, // Change src/main/jni the relative path to your jni source 'clean' }
0 0
- 文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题 文章标题 文章标题 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- nginx 配置$Query String
- win7 VMWARE 虚拟机CENTOS7与WINDOWS共享目录报 MOUNT: UNKNOWN FILESYSTEM TYPE ‘VMHGFS’
- Python 列表转换为字典
- 在Matlab中根据离散点坐标绘制空间曲面
- 数据结构(五)双链表
- 文章标题
- About App Distribution Workflows
- 查找第K大元素
- 从form的enctype属性到Content-Type再到request.getInputStream()
- 网络概述
- 微信小程序之基本配置
- Thinkpad E系列刷BIOS无法启动点亮或开机显示屏不亮解决办法
- Nodemanager堆内内存泄漏问题记录
- Hbase学习2_HBase数据同步到ElasticSearch的方案