1

I can't figure out what the problem is, i hope you can help me.

Error code:

Execution failed for task ':app:packageRelease'. java.io.IOException: Failed to create 'C:\Users\AnjaWin7xD\AndroidStudioProjects\Ortung\app\app-release.apk'

AleXoTroN
  • 29
  • 1
  • 10
  • where's the rest of the error log? – Gino Mempin Oct 25 '16 at 23:57
  • @ginomempin that's all what the console said – AleXoTroN Oct 26 '16 at 19:58
  • did you check the **Messages** and **Gradle Console** tabs? usually there's some error logs like [this](http://stackoverflow.com/questions/30705589/gradle-build-failure). and have you tried to "Invalidate Caches and Restart"? the only guess i have is that Android Studio can't write / doesn't have permission to write to that directory. – Gino Mempin Oct 27 '16 at 00:01
  • I think that was the reason, but i don't know. I did not get the error again since i wrote this question but i really think that the write permission was the error because i changed the project directory. Thank you for helping me! :) – AleXoTroN Jan 23 '17 at 20:48

1 Answers1

3

Try changing the destination folder for the app-release when generating the signed apk.That worked for me and I was able to generate the signed apk successfully.

Cosmas Ken
  • 86
  • 6