task ndkBuild(type: Exec) {
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
commandLine 'B:\\androidstudio\\sdk\\ndk-bundle\\ndk-build.cmd', '-C', file('src/main').absolutePath
} else {
commandLine'/Users/zhoudezheng/Desktop/Android/tools/ndk-bundle/ndk-build','-C', file('src/main').absolutePath
}
}
'/Users/zhoudezheng/Desktop/Android/tools/ndk-bundle/ndk-build' 由于不懂这个。导致我代码提示
------------------------------其实ndk-build是/Users/zhoudezheng/Desktop/Android/tools/ndk-bundle/目录下的一个文件。我以为是目录。导致我老是找不到这个路径---------------------------------------------------------
Error:Execution failed for task ':STMobileJNI:ndkBuild'.
> A problem occurred starting process 'command '/opt/android-ndk/ndk-build''
网友评论