Byrm Arf
Byrm Arf

Reputation: 114

React Native gradlew clean commant is not working

i just formatted my PC and reinstalled the envs for react native.

and after i built a empty project getting weird erros. Than i tryed to run gradlew clean in android folder and even this code is not working.

enter image description here

Upvotes: 3

Views: 5336

Answers (2)

TheRakeshPurohit
TheRakeshPurohit

Reputation: 551

first be in the react native project directory the follow the commands one by one:

cd android
./gradlew clean
cd ..
npx react-native run-android

tell me if it helps

Upvotes: 0

mansour lotfi
mansour lotfi

Reputation: 602

you must first go to android directory by:

cd android

then use this command:

./gradlew clean

enter image description here

for running again , back to previous directory with:

cd ..

and again there use this:

react-native run-android

Upvotes: 4

Related Questions