2016-10-27 38 views
0

我想開發簡單的反應原生應用程序,我是新的在這裏我得到以下錯誤,任何人都可以幫助我嗎?運行React原生應用程序在設備

JS server already running. 
'adb' is not recognized as an internal or external command, 
operable program or batch file. 
Building and installing the app on the device (cd android && gradlew.bat install 
Debug... 
:app:preBuild UP-TO-DATE 
:app:preDebugBuild UP-TO-DATE 
:app:checkDebugManifest 
:app:preReleaseBuild UP-TO-DATE 
:app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE 
:app:prepareComAndroidSupportRecyclerviewV72301Library UP-TO-DATE 
:app:prepareComAndroidSupportSupportV42321Library UP-TO-DATE 
:app:prepareComFacebookFrescoDrawee0110Library UP-TO-DATE 
:app:prepareComFacebookFrescoFbcore0110Library UP-TO-DATE 
:app:prepareComFacebookFrescoFresco0110Library UP-TO-DATE 
:app:prepareComFacebookFrescoImagepipeline0110Library UP-TO-DATE 
:app:prepareComFacebookFrescoImagepipelineBase0110Library UP-TO-DATE 
:app:prepareComFacebookFrescoImagepipelineOkhttp30110Library UP-TO-DATE 
:app:prepareComFacebookReactReactNative0350Library UP-TO-DATE 
:app:prepareComFacebookSoloaderSoloader010Library UP-TO-DATE 
:app:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE 
:app:prepareDebugDependencies 
:app:compileDebugAidl UP-TO-DATE 
:app:compileDebugRenderscript UP-TO-DATE 
:app:generateDebugBuildConfig UP-TO-DATE 
:app:generateDebugAssets UP-TO-DATE 
:app:mergeDebugAssets UP-TO-DATE 
:app:generateDebugResValues UP-TO-DATE 
:app:generateDebugResources UP-TO-DATE 
:app:mergeDebugResources UP-TO-DATE 
:app:bundleDebugJsAndAssets SKIPPED 
:app:processDebugManifest UP-TO-DATE 
:app:processDebugResources 
Unknown source file : ERROR: asset directory 'C:\Windows\System32\himanitest\and 
roid\app\build\intermediates\assets\debug' does not exist 

:app:processDebugResources FAILED 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':app:processDebugResources'. 

com.android.ide.common.process.ProcessException:org.gradle.process.internal.E xecException:進程 '命令' d:\ SDK \構建工具\ 23.0.1 \ aapt.exe'完成無線 個非零退出值1

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug 
option to get more log output. 

BUILD FAILED 

Total time: 8.394 secs 
Could not install the app on the device, read the error above for details. 
Make sure you have an Android emulator running or a device connected and have 
set up your Android development environment: 
https://facebook.github.io/react-native/docs/android-setup.html 
+0

檢查你是否能夠從命令提示符 – Jickson

+1

爲什麼System32文件夾內的項目進入亞行?由於缺乏讀/寫文件許可,可能會構建失敗。 – Jickson

+1

我得到這個錯誤adb服務器版本不匹配這個客戶端 –

回答

1

我升級compileSdkVersion和buildToolsVersion和它的作品

我升級從compileSdkVersion 23 buildToolsVersion「23.0.1」,以

compileSdkVersion 25 
buildToolsVersion "25.0.1" 
相關問題