- Verify in AS that Tools > SDK Manager > Android SDK Location points to the same place.
If it's only complaining about the SDK location, I suggest you copy local.properties from a working project and see if that helps.
It may be possible that Glide project is not AS 3.4 compatible, Did you follow the guide at https://bumptech.github.io/glide/dev/contributing.html ?
Also you need to have git on PATH working from command line: https://github.com/bumptech/glide/blob/master/settings.gradle#L2, but you said it works through gradlew ...