Could not get unknown property 'assembleRelease' while using gradle 2.14.1

When using older version then gradle 2.14.1 then below statement compiled and
run successfully but after updating with gradle 2.14.1, its not working.


  • Method onTouchEvent not being called
  • Android : Required API to use Switch?
  • Removing fragments from an activity
  • Google Play: We found Ad SDKs in your application
  • How to Convert an Android Library Project to an External JAR?
  • Debug Android library project with java source code
  • assembleRelease.dependsOn 'increaseVersionCodeAndName'



  • What happens to a Sqlite database when app is removed
  • Binary XML file line #9: Error inflating class fragment
  • Running a specific unit test with gradle
  • How to show the Android emulator without a keyboard
  • Samsung Galaxy s3 emulator settings
  • How can I calculate the SHA-256 hash of a string in Android?
  • One Solution collect form web for “Could not get unknown property 'assembleRelease' while using gradle 2.14.1”

    You may change your task increaseVersionCodeAndName that it will depend on release like:

    task increaseVersionCodeAndName() << {
        //your code
        dependsOn 'assembleRelease'

    Instead of calling gradle assemble call your own gradle task increaseVersionCodeAndName

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.