Fixing React native gradlew access error
How to fix React native ./gradlew access error
How to fix React native ./gradlew access error
Implementing an algorithm for finding an identity matrix.
Going through the fundamentals of stream api in dart programming language.
Tutorial on how to implement the proxy design pattern with Kotlin
Tutorial on composite design pattern with code example In Kotlin
Here we'll implement a draggable map with a fixed marker on top. that's only change when moving the map just like UBER.
Get up and running with Kotlin in no time
Discussing Kotlin Interface delegation and the shortcoming of the implementation inheritance
The adapter design pattern is a structural design pattern that's very useful when maintaining a legacy code or adding a new features.
The Façade design pattern is a structural design pattern. It reduces coupling and improves code readability.
If you are getting this error and you are pulling your hair off try to figure out what goes wrong! look no further here are few steps you can take to solve this issue.
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment.
Error: spawnSync ./gradlew EACCES
at Object.spawnSync (internal/child_process.js:1041:20)
at spawnSync (child_process.js:607:24)
at execFileSync (child_process.js:634:15)
./gradlew EACCES
Make sure your Environment variable are setup correctly. This environment variable allow react native CLI to access android SDK
use this if you are on visual studio code
code ~/.bash_profile
or this if you know how to exist vim
vim ~/.bash_profile
or
touch ~/.bash_profile; open ~/.bash_profile
Then you can add the following lines and save. Now react native is able to access android SDK tools allowing it to run your app.
export ANDROID_HOME=$HOME/Library/Android/sdk export PATH=$PATH:$ANDROID_HOME/emulator export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/tools/bin export PATH=$PATH:$ANDROID_HOME/platform-tools
Not yet done. after this you should add the right access permission for file ./gradlew
this could be done by opening your terminal and adding this
chmod 755 android/gradlew
hopefully this helps you to resolve ./gradlew EACCES
error.
Comments