Closed sujiewen closed 8 years ago
@sujiewen Did you set the path to your NDK installation in the Project Structure dialog (File->Project Structure)?
@rmtheis Already set,See screenshot!Command line can compile。
Be sure to add your NDK folder to your PATH. If that does not fix it, please open a new issue with the stack trace and the complete steps needed to reproduce this.
// def ndkBuildExt = Os.isFamily(Os.FAMILY_WINDOWS) ? ".cmd" : "" // commandLine "ndk-build${ndkBuildExt}", '-C', file('src/main').absolutePath, // '-j', Runtime.runtime.availableProcessors() if (Os.isFamily(Os.FAMILY_WINDOWS)) { commandLine "ndk-build.cmd", '-C', file('src/main').absolutePath, '-j', Runtime.runtime.availableProcessors() } else { commandLine "/Users/Sjw/Library/Android/sdk/ndk-bundle/ndk-build", '-C', file('src/main').absolutePath, '-j', Runtime.runtime.availableProcessors() } }
// def ndkBuildExt = Os.isFamily(Os.FAMILY_WINDOWS) ? ".cmd" : "" // commandLine "ndk-build${ndkBuildExt}", '-C', file('src/main').absolutePath, 'clean' }
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':tess-two:ndkClean'.
BUILD FAILED