Skip to content

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 – react native error. How to fix ?

Advertisements

As the error suggests we need to create local.properties inside the android directory of your react native app and add your android sdk directory property.

I’m using Ubuntu, hence my local.properties would look like:

sdk.dir = /home/anand/Android/Sdk
See also  Lowest Common Ancestor of a Binary Tree - Leetcode Challenge - Python Solution

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.