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

The solution of html2canvas that pictures cannot be captured normally

question First, let me talk about the problem I e...

Sharing experience on the priority of CSS style loading

During the project development yesterday, I encoun...

A magical MySQL deadlock troubleshooting record

background Speaking of MySQL deadlock, I have wri...

Example code for using HTML ul and li tags to display images

Copy the following code to the code area of ​​Drea...

A brief discussion on the magic of parseInt() in JavaScript

cause The reason for writing this blog is that I ...

What is the function of !-- -- in HTML page style?

Mainly for low version browsers <!-- --> is ...

MySQL 4G memory server configuration optimization

As the number of visits to the company's webs...

MySQL quick recovery solution based on time point

The reason for writing such an article is that on...

A simple method to regularly delete expired data records in MySQL

1. After connecting and logging in to MySQL, firs...

View the number of files in each subfolder of a specified folder in Linux

count script #!/bin/sh numOfArgs=$# if [ $numOfAr...

Several popular website navigation directions in the future

<br />This is not only an era of information...

Detailed explanation of overflow-scrolling to solve scrolling lag problem

Preface If you use the overflow: scroll attribute...

Implementing WeChat tap animation effect based on CSS3 animation attribute

Seeing the recent popular WeChat tap function, I ...

Detailed explanation of MySQL's FreeList mechanism

1. Introduction After MySQL is started, BufferPoo...

Implementation of CSS child element selection parent element

Usually a CSS selector selects from top to bottom...