'Failed running CMake 3.18.1 on Android
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 1:[1]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | deas maha putra |
