Could not get unknown property 'assembleRelease' for project
<p>After updating Android Studio to version 2.2 and the gradle plugin to 2.2.0, I get following error:</p>

<blockquote>
  <p>Error:(32, 1) A problem occurred evaluating project ':jobdispatcher'.
  Could not get unknown property 'assembleRelease' for project ':jobdispatcher' of type org.gradle.api.Project.</p>
</blockquote>

<p>The problem is in the <a href="https://github.com/firebase/firebase-jobdispatcher-android/blob/master/jobdispatcher/build.gradle" rel="noreferrer">build.gradle</a> file of an imported jobdispatcher module:</p>

<pre><code>task aar(dependsOn: assembleRelease)
</code></pre>

<p>What changes can I make to fix this?</p>

<p>Note, this issue is very similar to, but still a bit different to, that reported <a href="https://stackoverflow.com/q/39590549/4070848">here</a>. </p>