Reputation: 77
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
Reputation: 607
have you tried 'sudo'
npm start
sudo react-native run-android
Upvotes: 1
Reputation: 1379
If you are using android just follow these steps:
cd android
gradlew clean
cd ..
react-native run-android
Upvotes: 16