0
votes

I'm trying to run my React-native app "Android" but in every single time before i add the SDK path inside project files manually like this

local.properties

sdk.dir=/Users/USERNAME/Library/Android/sdk

RN Error

  • What went wrong: A problem occurred configuring project ':app'.

    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 '/Volumes/..../.../.../.../android/local.properties'.

but that's tired if i want to do it in every single project i work for it

I'm Seen these answers but no one works for me

and here my .bash_profile => nano ~/.bash_profile

enter image description here

So What's Wrong I made?

1
Have tried to run export PATH=$PATH:~/Library/Android/sdk/platform-tools/ in your terminal ?Kishan Bharda
@KishanBharda yes 🙄 i can't see any output in the terminal and still issue happenOliver D
It does'n display any output. But worked for me.Kishan Bharda
@KishanBharda Not work sadlyOliver D

1 Answers

0
votes

Firstly according to the error you posted, ANDROID_SDK_ROOT variable should be defined. In your bash_profile you have defined ANDROID_HOME.

Secondly verify that SDK exists in the specified path with correct rights.