You are here
Home > Miscellaneous > Common Errors during React Native Installation and solutions

Common Errors during React Native Installation and solutions

xcrun: error: unable to lookup item ‘Path’ in SDK ‘iphoneos’

sudo xcode-select --switch /Applications/Xcode.app 


Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.

> SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project’s local properties file at ‘/Users/username/Documents/RN/AwesomeProject/android/local.properties’.

OR

Warning: ‘adb’ is not recognized as an internal or external command

Ensure, you’ve set the path in your ~./bashrc or ~./zshrc files

export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
export ANDROID_HOME=/Users/deepak.aggarwal/Library/Android/sdk
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/tools/bin:$PATH 

java.util.concurrent.ExecutionException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Unknown failure: Exception occurred while executing ‘install’:

cd android && ./gradlew clean 

Warning: No available formula with the name “watchman”

This could be an issue with improper brew install. Uninstall the current version referring to this thread and then re-install referring to the command here

Cannot read properties of undefined (reading ‘transformFile’) at Bundler.transformFile

As on DEC 2021, you will face this issue if you are using Node -v 17+. Use the node LTS version to resolve this.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
Top
0
Would love your thoughts, please comment.x
()
x