About React Native unable to link to the simulator

About React Native unable to link to the simulator

React Native can develop iOS and Android native apps based on the currently popular open source JavaScript library React.js. And React Native is already used in production environments - the Facebook Groups iOS app is developed based on it.

insert image description here

Solution (I):

Go to android/app/build.gradle file and configure it as follows

insert image description here

Using the above method, using r hot update, it shows that the simulator cannot be connected. I guess it's a problem with the Android Studio emulator.
Uninstall Android Studio and delete the entire installation directory and emulator data.
Reinstall Android Studio and create a new emulator.
Re- run the RN project without using the first method for configuration.

I forgot to take a screenshot and will update it next time I encounter this problem.

The above is the details about the problem that React Native cannot connect to the simulator. For more information about React Native connecting to the simulator, please pay attention to other related articles on 123WORDPRESS.COM!

You may also be interested in:
  • Use Win10+Android+Yoshi Android emulator to build ReactNative development environment
  • Solve the problem of react-native soft keyboard popping up and blocking the input box
  • The implementation process of the sliding ceiling effect of react-native
  • A brief discussion on several ways to pass parameters in React Native (summary)
  • React Native code example based on FlatList pull-down refresh pull-up load

<<:  How to install the graphical interface in Linux

>>:  Explanation of MySQL performance inspection through show processlist command

Recommend

Introduction to MySQL isolation level, lock and MVCC

This article aims to clarify the relationship bet...

Vue realizes screen adaptation of large screen pages

This article shares the specific code of Vue to a...

Linux Cron scheduled execution of PHP code with parameters

1. Still use PHP script to execute. Command line ...

Detailed process of installing Presto and connecting Hive in Docker

1. Introduction Presto is an open source distribu...

How to connect to MySQL visualization tool Navicat

After installing Navicat The following error may ...

In-depth understanding of javascript class array

js array is probably familiar to everyone, becaus...

Implementation of remote Linux development using vscode

Say goodbye to the past Before vscode had remote ...

Ubuntu 19.10 enables ssh service (detailed process)

It took me more than an hour to open ssh in Ubunt...

MySQL 5.7.17 winx64 installation and configuration method graphic tutorial

Windows installation mysql-5.7.17-winx64.zip meth...

Does the % in the newly created MySQL user include localhost?

Normal explanation % means any client can connect...

CentOS7 configuration Alibaba Cloud yum source method code

Open the centos yum folder Enter the command cd /...

MySQL 5.7 and above version download and installation graphic tutorial

1. Download 1. MySQL official website download ad...

5 Ways to Send Emails in Linux Command Line (Recommended)

When you need to create an email in a shell scrip...