Reading time: < 1 minutes
Today I’m going to show you how to fix the error:
A problem occurred evaluating project ‘:expo’.
A problem occurred configuring project ‘:expo-modules-core’.
Failed to notify project evaluation listener.
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 ‘C:\Users\user\Documents\projects\tickets_online\android\local.properties’.
Could not get unknown property ‘release’ for SoftwareComponentInternal set of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.
We need to go to the android folder of our React Native project and create a file or edit local.properties
Add the path to your SDK:
sdk.dir=C:\\Users\\user\\AppData\\Local\\Android\\sdk
*In my case, this is the path, you will have to find yours (the username “user” will change in your case), usually this default path will work for those who use Android Studio to install the SDK.