I’ve setup the environment for react native on Windows. But when I run the command

react-native run-android
I get the following errors –

* What went wrong:
A problem occurred configuring project ‘:app’.
> Failed to notify project evaluation listener.
> Could not initialize class com.android.sdklib.repository.AndroidSdkHandler
How do I fix this?

About Nilesh Raut

I am Nilesh,3+ years Exp of SEO, content writing, and keyword research. Also rocks it as a software dev with skills in OS, web dev, Flask, Python, C++, data structures, and algorithms. 3 on Leetcode, 5*on Hackerrank more platform.

Question is closed for new answers.
Nilesh Raut Selected answer as best July 20, 2023