'react Native Run Android Emulator Mac Ndk Is Missing A \'platforms\' Directory'
React-native run-ios For an Android build, make sure you have started your Android virtual device (AVD), and then run this command: Terminal. React-native run-android It will take a short while for everything to get up and running, after which you should see something like this: The city list home screen on iOS and Android. Let's now set up an Android device to run our React Native projects. Go ahead and plug in your device via USB to your development machine. Next, check the manufacturer code by using lsusb (on mac, you must first install lsusb). Lsusb should output something like this.
Environment Building Based on Windows 10
Install Java
JDK is better than 1.8 Java JDK download connection
And configure system environment variables
Configuration method
Win10 JAVA Environment Configuration
The sign of successful configuration is that both Java and javac input under CMD have corresponding prompts
Install SDK
Attention is a system environment variable
Note here that the Android environment variable ANDROID_HOME is configured. If not, it is possible to indicate that the SDK cannot be found when packaging.
PATH in win10 does not recognize% ANDROID_HOME% so it is configured as the previous path
Download Free Motion 5.4.5 - MAC. Download now Motion 5.4.5 for free with the torrent file below! Motion 5.4.5 and free full versions of best games and softwares for Windows & Mac PC, Xbox, PlayStation, Wii and much more at programsoft.it! The download of the torrent file below will be very fast and secured! So what are you waiting for? Mac users interested in Utorrent mac os x 10.5 8 generally download: µTorrent (uTorrent) 1.8 Free uTorrent is the world's most popular BitTorrent client, and is now available for Mac. Motion 5 for mac 10.10.5 torrent download. About uTorrent for Mac uTorrent is the smallest torrent client out on the net. The application was designed to use as little of a computer's resources as possible while offering equivalent functionality of heavily featured clients, such as Azureus or BitComet. Mac OS X 10.5 Leopard (PowerPC) (1) Mac OS X 10.5 Leopard (Intel) (2) Mac OS X 10.4 Tiger (PowerPC) (12) Mac OS X 10.4 Tiger (Intel) (11). The BitTorrent client enables a user to search for files in the.Torrent (pronounced 'dot torrent') format and download them. The current client enables a host of features including multiple parallel.
Install Android Studio
And configure the corresponding package management
Enter SDK manager (File => settings => Appearance & Behavior => System Settings => Android SDK)
SDK Platforms: Check Android 678 for general 6
SDK Tolls: Check Android SDK Build-Tools Android Emulator Android SDK Platform-Tools Android SDK Tools Documentation for Android SDK Intel x86 Emulator Support Repository Android Support Respository and Google Repository
Install node
A brief introduction to the process
Install Git
A brief introduction to the process
Initialize projects using react-native-cli
Manage installation of global or local cli using NPM packages or yarn packages
Create RN projects
RN Main Command
Enter for the first time possible error reporting, Ctrl + M or shake the development environment, set Debug server host & port for device, your IP: 8010, please make sure that the mobile phone and computer are in the same intranet segment.
If Welcome to React Native appears, it means success! Develop RN
Probable Problems in First Development and Debugging
When embedding native APP projects, use Device Support x86 (armeabi-v7a, but APK only supports armabi)
The reason for this is the build. gradle file configuration problem.
Find the corresponding Module: build. gradle file under your APP
Modify configuration
Change to
Here’s another configuration to see the prompt increase
When using Android Studio Virtual Machine, it may appear in the case of Intel integrated graphics card (prompting GPU error, virtual machine can not start)
[GPU Driver Issue. some users have experienced emulator stability issues with this driver version]
Processing method, to the virtual machine installation directory, through the command line to force start
- 1. Find the SDK Emulator folder (default location)
C:UsersusernameAppDataLocalAndroidSdkemulator
) - 2. In the blank
Ctrl + Shift + Right mouse button
Open the command window - 3. Input
emulator -list-avds
(Displays the virtual machine you created) - 4. Input
One of the virtual machines listed above in emulator-avd - GPU host
(for the forced-choice hardware gpu)
Android Studio turns on hot updates and tinker error reporting when debugging with virtual machines
Error:A problem occurred configuring project ‘:app’. Failed to notify project evaluation listener. Tinker does not support instant run mode, please trigger build by assembleDebug or disable instant run in ‘File->Settings…’. can’t find tinkerProcessDebugManifest, you must init tinker plugin first!
Tinker does not support instant run mode, you need to find File – > Settings – > Build, Execution, Deployment – > instant run and close, daily debugging can be Tinker closed to use instant run.
Specific View
It may be wrong to open a project without using Android Studio and use other IDEs directly (React Native Android build failed. SDK location not found)
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
- 1. Use Android Studio to open an Android file directory once, and the first time it will be loaded for a period of time.
- 2. Manually create local. properties
- Operating method*
- 1. Find the Android folder under the react-native project
- 2. Create a local. properties file in this folder
- 3. Write in the local. properties file
sdk.dir = /Users/USERNAME/Library/Android/sdk
Red screen error or program crash (Can not get BatchedBridge, make sure your bundle is packaged properly)
There are many reasons online because offline packages are not successful (bundlejs are not generated)
This way of development is to make an offline package every react-native and then manually place it under the original app for reference development.
This method clicks on the link to view
Another is automatic hot update development, which needs to cooperate with the native side, because an APP may nest multiple RN projects, so our existing approach here is
App wrote a public method dynamic and more RN routing protocol to take jsbundle package name, but in RNstart
The default name of the command isindex.android
andindex.ios
So we need to make dynamic judgments in common methods.
At present, we are facing the problem that the public method written by APP in the past does not automatically judge the environment and needs to be changed manually.CommonRNPage.java
The method annotation part of the code for injecting bundle package name into this file