0

This error came up when run react-native run-android.

I have already setup environment variables.

ANDROID_HOME C:\Users\username\AppData\Local\Android\Sdk

I tried creating local.properties file in in myapp/android with the content of this, sdk.dir = C:/Users/ivani/AppData/Local/Android/Sdk.

This error came up.

Failed to notify project evaluation listener. Could not initialize class com.android.sdklib.repository.AndroidSdkHandler

DarkSuniuM
  • 2,523
  • 2
  • 26
  • 43
Ivan Sim
  • 305
  • 4
  • 15

1 Answers1

0

Go to Control Panel > System and Security > System click on Advance System Setting > Environment Variable > System Variable > Edit > New Add the path i.e C:\Users\username\AppData\Local\Android\Sdk\platform-tools and click ok.

Set the ANDROID_HOME and JAVA_HOME path go to Control Panel > System and Security > System click on Advance System Setting > Environment Variable > User Variable > New set the SDK path click ok and set the jdk path click ok

for further reference follow the step 5 and 6 from React Native Environment Setup on Windows 10