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.


  • Android App Integrated with OK Google
  • What is the `Authorization` part of the http post request of Google's Firebase Downstream message?
  • Automatic layout mirroring in right-to-left locale with lollipop
  • Android RemoteViews, how to set ScaleType of an ImageView inside a widget?
  • Android: BitmapFactory.decodeStream() out of memory with a 400KB file with 2MB free heap
  • How to obtain Signing certificate fingerprint (SHA1) for OAuth 2.0 on Android?
  • assembleRelease.dependsOn 'increaseVersionCodeAndName'



    Related posts:

    XML Rendering errors Android preview N
    How to add padding to gradient <shape> in Android?
    Downloading sent mails from Yahoo, Gmail and Hotmail
    See if field exists in class
    ActivityCompat.requestPermissions not showing dialog box
    how to clear surface holder when media player is finished?
  • LocationManager calling onLocationChanged too often?
  • How to create Renderscript scripts on Android Studio, and make them run?
  • Cannot read recurring events from android calendar programmatically
  • How to create a Drawable with needed background color programmatically?
  • Change spinner background color but keep arrow
  • Android Fatal Error - Can not perform this action after onSaveInstanceState
  • 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.