Could not find method leftShift() for arguments

I got the another error on my task
Could not find method leftShift() for arguments [[email protected]] on task ‘:app:askForPasswords’ of type org.gradle.api.DefaultTask.

Change the gradle version according to app.

@zaasmi Could not find method doLast() for arguments [[email protected]] on project ‘:app’ of type org.gradle.api.Project.

task askForPasswords <<
 {
	def storePass
	def keyAlias
	def keyPass

Replace with

task askForPasswords 
doLast {
	def storePass
	def keyAlias
	def keyPass