1

Got error when running my project with CMake 3.18.1, I executed the following steps:

  1. I added the version requested on build.gradle as externalNativeBuild { cmake { path file('src/main/cpp/CMakeLists.txt') version '3.18.1' } }

  2. And also add on defaultConfig externalNativeBuild { cmake { cppFlags '' } }

  3. 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

3 Answers3

1

I faced the exact same issue. This is an issue with ADB not proving support for Apple M series chipsets. I found the solution here . Simply install rosetta.

softwareupdate --install-rosetta

Google Issue Tracker

Rajat Sangrame
  • 311
  • 3
  • 18
0

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

0

uninstall and install cmake version 3.18.1

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jan 03 '23 at 13:20