title: Error when attempting to build a release apk for flutter app - Could not resolve project :flutter_image_compress
body: <p>I am attempting to build a release apk for my app. And I get the following error</p>
  
  <pre><code>flutter build apk --release
  $ flutter build apk --release
  Initializing gradle...                                       2.8s
  Resolving dependencies...                                    8.8s
  
  FAILURE: Build failed with an exception.
  * What went wrong:
  Execution failed for task ':app:lintVitalRelease'.
  &gt; Could not resolve all artifacts for configuration ':app:dynamicProfileRuntimeClasspath'.
     &gt; Could not resolve project :flutter_image_compress.
       Required by:
           project :app
        &gt; Could not select value from candidates [null, debug, release] using AlternateDisambiguationRule.BuildTypeRule.
           &gt; java.lang.NullPointerException (no error message)
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  </code></pre>
  
  <p>Any suggestions on why this issue might be happening ?</p>