This question already has an answer here:
Can anyone tell me why I am receiving this error? I have downloaded a series of projects from GitHub for a Udacity course. Since there are about 50 or 60 projects (Exercises and Solutions) in the repo, I presume it has to do with the fact that each is an individual project on its own. I do not have a problem usually when I fork a repo and clone it locally.
I have read other posts about uninstalling and reinstalling ndk in the sdk. But I really want to know why this is happening and how I can fix without blindly uninstalling and re-installing. Any help is appreciated. Thanks.
If you are using NDK >= 18 you have to update your android gradle plugin to
>=3.1.x
See the Known Issues section:
https://android.googlesource.com/platform/ndk/+/ndk-release-r18/CHANGELOG.md