SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk
If you are getting below error.
A problem occurred configuring project ‘:app’.
SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project’s local properties file at ‘D:\ReactNativeProject\
Set up path of android installation in environment
Consider android SDK installed in below location
PC:\Users\Anuj\AppData\Local\Android\Sdk> dir
Directory: C:\Users\Anuj Verma\AppData\Local\Android\Sdk
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 07-12-2024 10:56 .downloadIntermediates
d----- 07-12-2024 10:56 .temp
d----- 03-12-2024 15:05 build-tools
d----- 03-12-2024 15:14 cmake
d----- 07-12-2024 09:50 cmdline-tools
d----- 03-12-2024 15:06 emulator
d----- 07-12-2024 10:56 extras
d----- 03-12-2024 15:05 licenses
d----- 03-12-2024 15:12 ndk
d----- 03-12-2024 15:05 platform-tools
d----- 03-12-2024 15:12 platforms
d----- 03-12-2024 15:29 skins
d----- 07-12-2024 10:10 sources
d----- 03-12-2024 15:31 system-images
-a---- 10-12-2024 17:17 16 .knownPackages
PS C:\Users\Anuj\AppData\Local\Android\Sdk>
Recent Comments