I just updated Android Studio, and now when I try to build my app, I get the following Gradle error:
Information: Compilation completed with 2 e
As for me ANDROID_HOME didn't work. It shows error that path is not found/exists which is totally stupid. Also I tried to create local.properties with sdk.dir=D:/android/sdk - this also wont work with the same error saying this path does not exist. What helped me - a RELATIVE PATH, so when I set
sdk.dir=../../../android/sdk
it starts to work