Error while executing process D:\Android-studio\Android\sdk\cmake\3.6.4111459\bin\cmake.exe with arg

Android studio3.0 原有项目中添加jni开发按照一般的教程时出现错误了

Error:A problem occurred configuring project ':app'.
> executing external native build for cmake C:\Users\Lenovo\Desktop\samples\MyJNIDemo\app\CMakeLists.txt

Error while executing process D:\Android-studio\Android\sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HC:\Users\Lenovo\Desktop\samples\MyJNIDemo\app -BC:\Users\Lenovo\Desktop\samples\MyJNIDemo\app\.externalNativeBuild\cmake\debug\x86_64 -DANDROID_ABI=x86_64 -DANDROID_PLATFORM=android-21 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\Lenovo\Desktop\samples\MyJNIDemo\app\build\intermediates\cmake\debug\obj\x86_64 -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=D:\Android-studio\Android\sdk\ndk-bundle -DCMAKE_CXX_FLAGS= -DCMAKE_TOOLCHAIN_FILE=D:\Android-studio\Android\sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=D:\Android-studio\Android\sdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja}

Error while executing process D:\Android-studio\Android\sdk\cmake\3.6.4111459\bin\cmake.exe with arg_第1张图片

Error while executing process D:\Android-studio\Android\sdk\cmake\3.6.4111459\bin\cmake.exe with arg_第2张图片

原因:CMakeLists.txt中的配置文件指定的路径出错,修改路径就可以了

Error while executing process D:\Android-studio\Android\sdk\cmake\3.6.4111459\bin\cmake.exe with arg_第3张图片Error while executing process D:\Android-studio\Android\sdk\cmake\3.6.4111459\bin\cmake.exe with arg_第4张图片

你可能感兴趣的:(Android,Android问题集)