Message: No connected devices! OR Unknown failure: cmd: Can't find service: package If it doesn't work for you, then reinstall the JDK. Solution: Verify the environment variable JAVA_HOME path is pointing to the right directory if not then update the path. This error will encounter when the JDK is not present in your system, or the system doesn’t recognize your JDK installation. Task :app:compileDebugJavaWithJavac FAILED Here we are going to look at the most common errors you may encounter while setting up the environment. That's it! Your app should be running on your virtual device.
Run the following command to install OpenJDK in fedora.Įnter fullscreen mode Exit fullscreen mode React Native requires at least version 8 of the java development kit. The JDK enables your computer to understand and run java code. Same way, take the SDK Tools tab, make sure that the following are marked.
Running a new react-native app in a virtual device. You'll need Node, JDK, React Native CLI, Android Studio to get started on your project.Ĥ. This guideline will cover the absolute basics of getting started with React Native and Android studio using standard procedure.