SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable

Please follow below steps it work’s for me: Go to your react-native Project then go to android directory Create a file with following name: local.properties Open the file and paste your Android SDK path like below: For windows users: sdk.dir=C:\\Users\\UserName\\AppData\\Local\\Android\\sdk Replace UserName with your pc user name . Also make sure the folder is sdk … Read more