大佬教程收集整理的这篇文章主要介绍了android – react-native:’adb’不被识别为内部或外部命令,可操作程序或批处理文件,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我无法运行我的第一个应用程序,因为adb’未被识别为内部或外部命令,可操作程序或批处理文件而出现错误.
我检查了android sdk-> platform-tools->我可以在那里看到adb.exe.
构建成功但在运行时出错.下面是我的cmd提示符
@H_594_8@microsoft Windows [Version 10.0.14393] (C) 2016 Microsoft Corporation. All rights reserved. E:\ReactWorkSpace\MyFirstApp>react-native run-android ScAnning 560 folders for symlinks in E:\ReactWorkSpace\MyFirstApp\node_modules (72ms) JS server already running. Building and installing the app on the device (cd android && gradlew.bat installDebug)... Incremental java compilation is an incubaTing feature. :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72301Library :app:prepareComAndroidSupportRecyclerviewV72340Library :app:prepareComAndroidSupportSupportV42340Library :app:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library :app:prepareComFacebookFrescoDrawee101Library :app:prepareComFacebookFrescoFbcore101Library :app:prepareComFacebookFrescoFresco101Library :app:prepareComFacebookFrescoImagepipeline101Library :app:prepareComFacebookFrescoImagepipelineBase101Library :app:prepareComFacebookFrescoImagepipelineOkhttp3101Library :app:prepareComFacebookReactReactNative0434Library :app:prepareComFacebookSoloaderSoloader010Library :app:prepareOrgWebkitAndroidJscR174650Library :app:prepareDebugDependencies :app:compileDebugAidl :app:compileDebugRenderscript :app:generateDebugBuildConfig :app:mergeDebugShaders :app:compileDebugShaders :app:generateDebugAssets :app:mergeDebugAssets :app:generateDebugResValues :app:generateDebugresources :app:mergeDebugresources :app:bundleDebugJsAndAssets SKIPPED :app:processDebugManifest :app:processDebugresources :app:generateDebugsources :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:processDebugJavaRes UP-TO-DATE :app:transformresourcesWithMergeJavaResForDebug :app:validateSigningDebug :app:packageDebug :app:assembleDebug :app:installDebug Installing APK 'app-debug.apk' on 'A16 - 4.2.2' for app:debug Installed on 1 device. BUILD succesSFUL @R_134_10586@l time: 7 mins 4.412 secs 'adb' is not recognized as an internal or external command,operable program or batch file. StarTing the app (D:\Android\sdk/platform-tools/adb sHell am start -n com.myfirstapp/.MainActivity... StarTing: Intent { cmp=com.myfirstapp/.MainActivity } E:\ReactWorkSpace\MyFirstApp>我没有使用模拟器,使用自己的移动设备.应用程序在我的设备中启动,但我看到的只是一个白色的空白屏幕.我按照官方网站上的说法正确遵循了所有说明.
谢谢.
以上是大佬教程为你收集整理的android – react-native:’adb’不被识别为内部或外部命令,可操作程序或批处理文件全部内容,希望文章能够帮你解决android – react-native:’adb’不被识别为内部或外部命令,可操作程序或批处理文件所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。