My Gradle sync fails with the following error message in the log:
Gradle sync failed: java.lang.NoSuchMethodError: com.android.builder.model.AndroidProject.getProjectType()I
Gradle sync failed: com.android.builder.model.AndroidProject.getProjectType()I
Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly.
I have managed to get rid of this problem now. It seems it had something to do with the latest Android Studio.
I downloaded 2.3 Beta 1
from the Canary Channel, and that's where the problem was.
I went back to using 2.3 Canary 3
from the Canary Channel, and now it works fine.