yusufavz
yusufavz

Reputation: 35

React-native Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

when starting my react-native project react-native run-android I get the error in the picture.enter image description here

on the internet cd ./android ./gradlew.bat installDebug command says it will repair but this command does not work thanks you so much enter image description here

Upvotes: 1

Views: 1004

Answers (1)

yusufavz
yusufavz

Reputation: 35

I found out that the problem was with the java version, I upgraded the installed 1.8 version to 11 and the windows advanced site settings > environment variables in the picture. my JAVA_HOME i updatedenter image description here

Upvotes: 1

Related Questions