React Native shows error when I try to emulate Android

Asked

Viewed 239 times

0

I have an app that should be tested on an Android emulator. After setting the React Native and Android environment (including the environment variable). I can’t run my app on Android emulator.

Derogatory message:inserir a descrição da imagem aqui

I’m using windows 10 x68 with JDK, JRE 1.8 installed and configured(Environment Variable)

1 answer

2


The error shown is related to JRE location, Gradle is unable to find the tools.jar file..

This file is usually found in the lib folder inside the JDK folder, note that its variable is pointing to the JRE folder.

Modify the JRE path to the JDK folder.

You may find it on:

c:\Arquivos de Programa\Java\jdk1.6.0_26\lib\tools.jar

Browser other questions tagged

You are not signed in. Login or sign up in order to post.