After latest update of android studio , using classpath 'com.android.tools.build:gradle:2.3.0-beta1' , I am getting the following error on gradle sync .
Error:Gradle DSL method not found: 'has()'
Update its casused by android volley , full error :
Error:FAILURE: Build failed with an exception.
Could not find method has() for arguments [release] on project ':volley' of type org.gradle.api.Project.
The Volley project has given the following warning for a while now:
The has() method has been deprecated and is scheduled to be removed in Gradle 3.0. Please use the hasProperty() or ext.has() method instead.
Changing the line in Volley's
bintray.gradle file from
publish = project.has("release")
publish = project.hasProperty("release")
Seems to fix the issue