Execution failed for task ':app:signingConfigWriterDebug'

Viewed 6910

Recently I have faced the following problem. When I have just built the project with another user-account before and the permissions were not inherited from a parent directory. It shows an error like that:

java.nio.file.AccessDeniedException: C:\Projects\PracticeApp\app\build\intermediates\signing_config\debug\out\signing-config.json

What is the reason? How can I solve it ? Thank you in advance.

5 Answers

At last the solution I found: I try to change signing-config.json properties and it works.

  • open \build\app\intermediates\signing_config\debug\out.
  • then right click on signing-config.json and open properties.
  • go to security tab and click advance button.
  • Then click the security
  • click change owner
  • add your active windows user and apply
  • open file properties one more time, go to the Security tab.
  • Now select the user and edit the access permission all read write.

I have followed this link link and it works now for me. Thank you so much. 

I also faced the same problem, and the solution was to run the command

flutter clean

and then

flutter run

In my case, the following is a solution

  1. open \build\app\intermediates\signing_config\debug\out.
  2. delete the file, signing-config.json. That's it. Rebuild and Run the project.

For me, the solution was:

  • Open the terminal in vscode
  • Type the command flutter clean
  • Fixed

In my case, the following helped me

  1. Clean Project
  2. Run 'app'
Related