Android Studio 中的 NDK 不适用于 C++ 文件
NDK in Android Studio not working for C++ files
在最新的 Android Studio 2.0 中,我正在尝试 运行 ndk 示例,但构建因以下错误而中断:
/Users/ktulsia/AndroidStudioProjects/example/app/src/main/jni/hello-jni.cpp
Error:(18, 18) string: No such file or directory
compilation terminated.
Error:Execution failed for task ':app:compileArm64-v8aDebugHello-jniSharedLibraryHello-jniMainCpp'.
> A build operation failed.
C++ compiler failed while compiling hello-jni.cpp.
See the complete log at: file:///Users/ktulsia/AndroidStudioProjects/example/app/build/tmp/compileArm64-v8aDebugHello-jniSharedLibraryHello-jniMainCpp/output.txt
在最新的 Android Studio 2.0 中,我正在尝试 运行 ndk 示例,但构建因以下错误而中断:
/Users/ktulsia/AndroidStudioProjects/example/app/src/main/jni/hello-jni.cpp
Error:(18, 18) string: No such file or directory
compilation terminated.
Error:Execution failed for task ':app:compileArm64-v8aDebugHello-jniSharedLibraryHello-jniMainCpp'.
> A build operation failed.
C++ compiler failed while compiling hello-jni.cpp.
See the complete log at: file:///Users/ktulsia/AndroidStudioProjects/example/app/build/tmp/compileArm64-v8aDebugHello-jniSharedLibraryHello-jniMainCpp/output.txt