Skip to content Skip to sidebar Skip to footer

Spawnsync ./gradlew Eacces Error When Running React Native Project On Emulator Udara

I am trying to use react-native run-android to install my react-native application on an android studio emulator. I have checked with abd-devices that the emulator is availab

Solution 1:

I fixed this problem with:

chmod 755 android/gradlew 

the chmod command sets the permissions of files or directories. https://www.computerhope.com/unix/uchmod.htm

Solution 2:

I think it's permission issue I faced this problem before, you can resolve it by changing the permission, run the following command

chmod 755 android/gradlew

Solution 3:

I tried the above solution.but in my case I had to use sudo because of the permission issue. You can resolve it by running the command

sudo chmod 755 android/gradlew

Solution 4:

Solution 5:

It turns out that It's not gradle but it's android/gradlew. run the below command inside the root directory:

$ chmod +x android/gradlew

Now run

$ yarn android            
# OR   $ npm run android 
# OR$ npx eact-native run-android

You should be good to go.

Post a Comment for "Spawnsync ./gradlew Eacces Error When Running React Native Project On Emulator Udara"