Ukubu
Ukubu

Reputation: 820

Gradle build fails every time

I updated my Android tools today and the now the gradle always fails to finish its job. It says

Error:A problem was found with the configuration of task :app:zipalignDebug. File D:\Projects\AppName\app\build\outputs\apk\app-debug-unaligned.apk specified for property inputFile does not exist.

Actually there isn't even any file called app-debug-unaligned.apk in my apk folder.

Upvotes: 0

Views: 503

Answers (1)

Msp
Msp

Reputation: 2493

Try this,

  1. Delete build folders
  2. File -> Invalidate Caches & Restart
  3. Build -> Clean Project
  4. Build -> Rebuild Project
  5. Run assembleRelease task (either from the command line or from the Gradle tasks view)
  6. Run build task

Upvotes: 1

Related Questions