Android studio errors

Trying to follow these steps for android projects: https://github.com/googlesamples/android-ndk/tree/master/gles3jni

I get this error:
Gradle ‘hello-gl2’ project refresh failed
Error:Already created an SDK Loader with different SDK Path

I don’t know gradle well enough to begin to describe what’s wrong.

The only thing that I can see is that there’s some conflicts somewhere in some file that I don’t know how to edit.

following these steps from the readme produces the exact same error.

Getting Started

  1. Download Android Studio
  2. Launch Android Studio.
  3. Open the sample directory.
  4. Open File/Project Structure…
  • Click Download or Select NDK location.
  1. Click Tools/Android/Sync Project with Gradle Files.
  2. Click Run/Run ‘app’.

how do i fix this error:
Gradle ‘hello-gl2’ project refresh failed
Error:Already created an SDK Loader with different SDK Path

This is the wrong forum for Android Studio related topics.

It’s not a problem with android studio per se as more of an issue with gradle’s files.

Where in the gradle files would SDK Loader" be defined?