ReactNative run-android 报错error: unknown host service

:app:incrementalDebugJavaCompilationSafeguard
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
:app:compileDebugNdk UP-TO-DATE                
:app:compileDebugSources
:app:transformClassesWithDexForDebug                 
Running dex in-process requires build tools 23.0.2.
For faster builds update this project to use the latest build tools.
:app:mergeDebugJniLibFolders                         
:app:transformNative_libsWithMergeJniLibsForDebug                 
:app:transformNative_libsWithStripDebugSymbolForDebug                 
:app:processDebugJavaRes UP-TO-DATE
:app:transformResourcesWithMergeJavaResForDebug
:app:validateSigningDebug
:app:packageDebug                 
:app:assembleDebug
:app:installDebug                 
Installing APK 'app-debug.apk' on 'SCH-I959 - 5.0.1' for app:debug
Installed on 1 device.            
                                  
BUILD SUCCESSFUL

Total time: 34.224 secs
Running C:\Users\jijunpeng\Dev\Android\SDK/platform-tools/adb -s 4d005d564f1480ed reverse tcp:8081 tcp:8081
Starting the app on 4d005d564f1480ed (C:\Users\jijunpeng\Dev\Android\SDK/platform-tools/adb -s 4d005d564f1480ed shell am start -n com.jijunpeng.zentaomobile/.MainActivity)...
error: unknown host service

将电脑上占用5037端口的程序杀死,然后重新运行react-native run-android即可

你可能感兴趣的:(ReactNative run-android 报错error: unknown host service)