Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译不过,求编译指南 #16

Open
zcolin opened this issue Aug 30, 2016 · 4 comments
Open

编译不过,求编译指南 #16

zcolin opened this issue Aug 30, 2016 · 4 comments

Comments

@zcolin
Copy link

zcolin commented Aug 30, 2016

NDKR11 + SDK23.01 +gradle2.1.0

编译的时候提示
Error:Execution failed for task ':app:buildNative'.

A problem occurred starting process 'command 'D:\android-ndk-r11/ndk-build''

这个需要更改路径么,我看路径是正确的
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'

@zcolin
Copy link
Author

zcolin commented Aug 31, 2016

最终使用ndk-build编译完成,copy到项目里运行了

@quicent
Copy link

quicent commented Sep 9, 2016

同样遇到
Error:Execution failed for task ':app:cleanNative'.

A problem occurred starting process 'command 'D:\AndroidSDK\ndk-bundle/ndk-build''

请问怎么解决的?
使用ndk-build编译完成,copy到项目里运行,怎么操作?

@billbryant
Copy link

windows下, "$ndkDir/ndk-build",改为 "$ndkDir/ndk-build.cmd"

@911oscar
Copy link

我修改完楼主这个错误后,出现另一个错误,求助!谢谢:
Error:Execution failed for task ':app:buildNative'.

Process 'command 'D:\softwares\adt-bundle-windows-x86_64-20131030\sdk\ndk-bundle/ndk-build.cmd'' finished with non-zero exit value -1073741819

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants