CMake Error

Build command failed.
Error while executing process /Users/lvstudio/Library/Android/sdk/cmake/3.6.4111459/bin/cmake with arguments {-H/Users/lvstudio/Downloads/project/small-video-record/SmallVideoRecord2/SmallVideoLib2 -B/Users/lvstudio/Downloads/project/small-video-record/SmallVideoRecord2/SmallVideoLib2/.externalNativeBuild/cmake/release/armeabi -GAndroid Gradle - Ninja -DANDROID_ABI=armeabi -DANDROID_NDK=/Users/lvstudio/Downloads/android-ndk-r17b -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/lvstudio/Downloads/project/small-video-record/SmallVideoRecord2/SmallVideoLib2/build/intermediates/cmake/release/obj/armeabi -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=/Users/lvstudio/Library/Android/sdk/cmake/3.6.4111459/bin/ninja -DCMAKE_TOOLCHAIN_FILE=/Users/lvstudio/Downloads/android-ndk-r17b/build/cmake/android.toolchain.cmake -DANDROID_PLATFORM=android-14 -DCMAKE_CXX_FLAGS=-std=c++11}
(include) CMakeLists.txt
Open File

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
解决办法:

去掉gradle中ndk配置的armeabi。


去掉它

你可能感兴趣的:(CMake Error)