Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 904
Prashanth Avatar asked Aug 03 '18 14:08

Prashanth


2 Answers

If you are using android just follow these steps:

  1. cd android
  2. gradlew clean
  3. cd ..
  4. react-native run-android
like image 119
Govan Avatar answered Nov 19 '22 04:11

Govan


have you tried 'sudo'

npm start
sudo react-native run-android
like image 1
Varun Pradhan Avatar answered Nov 19 '22 04:11

Varun Pradhan