Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    This answer is useful also if you have Android Studio, and got code from another developer which included their local.properties. You can edit their local.properties and delete the line with ndk.dir that points to their local machine folder, if your Android Studio is already configured with the correct folder on your machine. Then gradle sync and the error would be gone. Commented May 26, 2020 at 2:23
  • FYI this is now slightly outdated due to deprecation of the ndk.dir configuration in local.properties. It still works (for now) but the recommended approach is now outlined here for setting this correctly: developer.android.com/studio/…
    – speby
    Commented Feb 17, 2021 at 23:49