Thursday, 2 August 2018

Error after upgrading Android Studio NDK: CMAKE_C_COMPILER and CMAKE_CXX_COMPILER not set

Error screen in Android Studio
After updating Android Studio NDK, I can't build my app, due to an error related to CMAKE (my application uses one c++ file). Here are the error lines:
Build command failed.
Error while executing process C:\Users\AnimallTag\AppData\Local\Android\sdk\cmake\3.
6.4111459\bin\cmake.exe with arguments {-HC:\Projetos\Git\at65\app -BC:\Projetos\Git
\at65\app\.externalNativeBuild\cmake\debug\mips -GAndroid Gradle - Ninja -DANDROID_ABI=mips
 -DANDROID_NDK=C:\Users\AnimallTag\AppData\Local\Android\sdk\ndk-bundle -
DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Projetos\Git\at65\app\build\intermediates\cmake\debug\obj
\mips -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=C:\Users\AnimallTag\AppData\Local\Android
\sdk\cmake\3.6.4111459\bin\ninja.exe -DCMAKE_TOOLCHAIN_FILE=C:\Users\AnimallTag\AppData\Local
\Android\sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DANDROID_PLATFORM=android-14}
 (include)   CMakeLists.txt 
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

Any suggestion to help me solve that problem? Maybe a way I can downgrade NDK or a Android Studio previous version I can install...


from Error after upgrading Android Studio NDK: CMAKE_C_COMPILER and CMAKE_CXX_COMPILER not set

No comments:

Post a Comment