0
When executing react-native run-android
gives the following error:
FAILURE: Build failed with an Exception.
What Went Wrong: Execution failed for task ':app:mergeDebugResources'.
Error: java.util.Concurrent.Executionexception: com.android.ide.common.process.Processexception:
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
FAILED BUILD
Total time: 2 mins 21,254 secs Could not install the app on the device, read the error above for Details. Make sure you have an Android Emulator running or a device Connected and have set up your Android: https://facebook.github.io/react-native/docs/getting-started.html
Information from the JDK:
java version "1.8.0_181" Java(TM) SE Runtime Environment (build 1.8.0_181-B13) Java Hotspot(TM) 64-Bit Server VM (build 25.181-B13, Mixed mode)
Information on the React-Native:
React-Native-cli: 2.0.1 React-Native: 0.55.4
I tried to run on Genymotion, on the phone itself and Android Studio, but gives the same error.
API 23 and 28.
Hello Thiago, did not have the variable ANDROID_HOME, I configured all the variables and I put a path to the SDK in Genymotion, but is giving the same error.
– Caio Lucas Teixeira F.O.
@Caiolucasteixeiraf.O. when you give the android command, it identifies the variable?
– Thiago Tibau