I am getting above mentioned error while building my android project in android studio version 4.0 and gradle version 4.0.0.
For me, the error resolved on setting the correct ndk version in build.gradle file. Example configuration: android { compileSdkVersion 29 ndkVersion "18.1.5063045" defaultConfig { ........ You can click on the first line in Build Output to get full information about the error: