To resolve the CMake build error, I disabled the new architecture by setting newArchEnabled=false in the gradle.properties file.
newArchEnabled=false
gradle.properties