1. Check in your build.gradle file for your App's module 
3. re-sync the project:
externalNativeBuild {
        cmake {
            path "CMakeLists.txt"
        }
    }
 
2. remove above the cmake section3. re-sync the project:
   go to menu Build -> Refresh Linked C++ Projects 
4. Right-click on the module, such as the app module, select "Link C++ Project with Gradle" from the menu.
5. You should see a dialog similar to the one shown in below figure.
6. Click OK.