npm run android > Cannot add task 'wrapper' as a task with that name already exists.
5ervant opened this issue · 1 comments
5ervant commented
Here's what I've run and what it showed:
PS C:\Users\Admin\Documents\Node.js Projects\Samples\react-native-web-app> npm run android
> creaternwapp@0.1.0 android C:\Users\Admin\Documents\Node.js Projects\Samples\react-native-web-app
> react-native run-android
Scanning folders for symlinks in C:\Users\Admin\Documents\Node.js Projects\Samples\react-native-web-app\node_modules (132ms)
JS server already running.
Building and installing the app on the device (cd android && gradlew.bat installDebug)...
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Admin\Documents\Node.js Projects\Samples\react-native-web-app\android\build.gradle' line: 36
* What went wrong:
A problem occurred evaluating root project 'creaternwapp'.
> Cannot add task 'wrapper' as a task with that name already exists.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html