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  HackerRank Solutions - Sorting using Comparator - Java Solution

Leave a Reply

Your email address will not be published. Required fields are marked *

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