react-native run-android没有完成并挂起

时间:2017-07-22 20:06:20

标签: android react-native react-native-android

当我使用此命令时,它启动了一个JS服务器,但之后它上升到“2/2项目”行并且它停留在该行...

我在终端上所做的一切都在下面给出......

任何建议都很好......

C:\Users\saket>cd myapp
C:\Users\saket\myapp>react-native run-android
Scanning 558 folders for symlinks in C:\Users\saket\myapp\node_modules 
(230ms)
Starting JS server...
Building and installing the app on the device (cd android && gradlew.bat 
install
Debug)...
Checking the license for package Android SDK Build-Tools 23.0.1 in 
C:\Users\sake
t\AppData\Local\Android\Sdk\licenses
License for package Android SDK Build-Tools 23.0.1 accepted.
Preparing "Install Android SDK Build-Tools 23.0.1".
> Configuring > 2/2 projects

1 个答案:

答案 0 :(得分:2)

您需要先在android studio中安装以下软件包。 Android sdk平台必须是23.0.1。

1.Google APIs
2.Android SDK Platform 23
3.Intel x86 Atom_64 System Image
4.Google APIs Intel x86 Atom_64 System Image

现在再去看看......

cd ProjectName
react-native run-android