Issue
Got error when running my project with CMake 3.18.1, I executed the following steps:
I added the version requested on build.gradle as
externalNativeBuild { cmake { path file('src/main/cpp/CMakeLists.txt') version '3.18.1' } }
And also add on defaultConfig
externalNativeBuild { cmake { cppFlags '' } }
Inside CmakeList
cmake_minimum_required(VERSION 3.18.1)
I got error message [CXX1405] exception while building Json A problem occurred starting process 'command '/Users/user/Library/Android/sdk/cmake/3.18.1/bin/cmake''
I already clean the project and invalidate cache, but still error. I try increase the version but got many error. thanks
Solution
I found the solution is need remove CMake or .cxx file from your co worker before push to git, the issue because generate file. thanks
Answered By - deas maha putra Answer Checked By - Pedro (WPSolving Volunteer)