React-native run-android fail on :app:processDebugResources
<p>I recently added push notification to my app using <a href="https://github.com/oney/react-native-gcm-android%20module" rel="noreferrer">react-native</a>
and since at seemingly random times I get messages such as in the added photo
Execution failed for task </p>

<pre><code>':app:processDebugResources'.
 java.io.IOException: Could not delete folder ..\android\app\build\generated\source\r\debug\com\facebook\drawee
</code></pre>

<p><img src="https://i.stack.imgur.com/MqraU.png" alt="the error message"></p>

<p>Did anyone experienced something like that or has a solution? </p>