Prashanth
Prashanth

Reputation: 77

React Native throws Access denied Error while building

I am getting in this error in console.

FAILURE: Build failed with an exception.

What went wrong: Failed to capture snapshot of output files for task ':react-native-linear-gradient:processDebugManifest' property 'aaptFriendlyManifestOutputDirectory' during up-to-date check.

>java.nio.file.AccessDeniedException: P:\React Native\JDream\node_modules\react-native-linear-gradient\android\build\intermediates\manifests\aapt\debug

Upvotes: 5

Views: 3928

Answers (2)

Varun Pradhan
Varun Pradhan

Reputation: 607

have you tried 'sudo'

npm start
sudo react-native run-android

Upvotes: 1

Govan
Govan

Reputation: 1379

If you are using android just follow these steps:

  1. cd android
  2. gradlew clean
  3. cd ..
  4. react-native run-android

Upvotes: 16

Related Questions