OS: win32 x64
Adapter node: v8.9.3 x64
vscode-chrome-debug-core: 3.17.3
Could not debug. Error while executing command 'F\:\Programs\Android\sdk\platform-tools\adb devices': Command failed: F\:\Programs\Android\sdk\platform-tools\adb devices
The filename, directory name, or volume label syntax is incorrect.
Metro Bundler ready.
[Info] Packager started.
[Info] Prewarming bundle cache. This may take a while ...
[Info] About to get: http://localhost:8081/index.bundle?platform=android
Loading dependency graph, done.
[Warning] The Bundle Cache was prewarmed.
[Info] Building and running application.
BUNDLE [android, dev] ./index.js 鈻撯枔鈻撯枔鈻撯枔鈻撯枔鈻撯枔鈻撯枔鈻撯枔鈻撯枔 100.0% (762/762), done.
[Error] Error: Error while executing command 'F\:\Programs\Android\sdk\platform-tools\adb devices': Command failed: F\:\Programs\Android\sdk\platform-tools\adb devices
The filename, directory name, or volume label syntax is incorrect.
BUNDLE [android, dev] ./index.js 鈻撯枔鈻撯枔鈻撯枔鈻撯枔鈻撯枔鈻撯枔鈻撯枔鈻撯枔 100.0% (762/762), done.
I can see that there is an extra '\' character between 'F' and ':', but for the life of me I cannot find where to go to fix it. I tried changing the environment variable for adb but it did not work.
Exact same error here
https://github.com/Microsoft/vscode-react-native/issues/777#issuecomment-416426868 @macaetano check this out, it worked for me
Thx @Sterlingryan, that worked for me too.
@macaetano thanks for reaching us. Please, try updating to v0.6.16, versions v0.6.14-v0.6.15 are broken.
V0.6.16 fixed that, thank you @ruslan-bikkinin that was very fast
The latest update (0.6.17) produced a similar error as mentioned in this issue :
[Error] Error: Error while executing command 'F:ProgramsAndroidsdkplatform-toolsadb devices': Command failed: F:ProgramsAndroidsdkplatform-toolsadb devices
The filename, directory name, or volume label syntax is incorrect.
@Sterlingryan could you please copy-paste output of View -> Output -> React-Native: Run Android channel and content of your-project-path/android/local.properties.
React-Native: Run Android
`[Warning] Target simulator is not supported for Android platform. If you want to use particular device or simulator for launching Android app, please specify device id (as in 'adb devices' output) instead.
[Info] Using Android SDK location defined in android/local.properties file: F:\Programs\Android\sdk.
[Info] Starting React Native Packager.
Scanning folders for symlinks in f:GitHubReact Native ProjectsRentProfileAgentsnode_modules (67ms)
Building and installing the app on the device (cd android && gradlew.bat installDebug)...
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
:app:preBuild UP-TO-DATE
:react-native-camera:preBuild UP-TO-DATE
:react-native-camera:preDebugBuild UP-TO-DATE
:react-native-camera:checkDebugManifest UP-TO-DATE
:react-native-camera:processDebugManifest UP-TO-DATE
:react-native-image-resizer:preBuild UP-TO-DATE
:react-native-image-resizer:preDebugBuild UP-TO-DATE
:react-native-image-resizer:checkDebugManifest UP-TO-DATE
:react-native-image-resizer:processDebugManifest UP-TO-DATE
:react-native-securerandom:preBuild UP-TO-DATE
:react-native-securerandom:preDebugBuild UP-TO-DATE
:react-native-securerandom:checkDebugManifest UP-TO-DATE
:react-native-securerandom:processDebugManifest UP-TO-DATE
:react-native-vector-icons:preBuild UP-TO-DATE
:react-native-vector-icons:preDebugBuild UP-TO-DATE
:react-native-vector-icons:checkDebugManifest UP-TO-DATE
:react-native-vector-icons:processDebugManifest UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:react-native-camera:compileDebugAidl UP-TO-DATE
:react-native-image-resizer:compileDebugAidl UP-TO-DATE
:react-native-securerandom:compileDebugAidl UP-TO-DATE
:react-native-vector-icons:compileDebugAidl UP-TO-DATE
:app:compileDebugAidl UP-TO-DATE
:react-native-camera:packageDebugRenderscript NO-SOURCE
:react-native-image-resizer:packageDebugRenderscript NO-SOURCE
:react-native-securerandom:packageDebugRenderscript NO-SOURCE
:react-native-vector-icons:packageDebugRenderscript NO-SOURCE
:app:compileDebugRenderscript UP-TO-DATE
:app:checkDebugManifest UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:prepareLintJar UP-TO-DATE
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:react-native-camera:mergeDebugShaders UP-TO-DATE
:react-native-camera:compileDebugShaders UP-TO-DATE
:react-native-camera:generateDebugAssets UP-TO-DATE
:react-native-camera:packageDebugAssets UP-TO-DATE
:react-native-image-resizer:mergeDebugShaders UP-TO-DATE
:react-native-image-resizer:compileDebugShaders UP-TO-DATE
:react-native-image-resizer:generateDebugAssets UP-TO-DATE
:react-native-image-resizer:packageDebugAssets UP-TO-DATE
:react-native-securerandom:mergeDebugShaders UP-TO-DATE
:react-native-securerandom:compileDebugShaders UP-TO-DATE
:react-native-securerandom:generateDebugAssets UP-TO-DATE
:react-native-securerandom:packageDebugAssets UP-TO-DATE
:react-native-vector-icons:mergeDebugShaders UP-TO-DATE
:react-native-vector-icons:compileDebugShaders UP-TO-DATE
:react-native-vector-icons:generateDebugAssets UP-TO-DATE
:react-native-vector-icons:packageDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:react-native-camera:compileDebugRenderscript UP-TO-DATE
:react-native-camera:generateDebugResValues UP-TO-DATE
:react-native-camera:generateDebugResources UP-TO-DATE
:react-native-camera:packageDebugResources UP-TO-DATE
:react-native-image-resizer:compileDebugRenderscript UP-TO-DATE
:react-native-image-resizer:generateDebugResValues UP-TO-DATE
:react-native-image-resizer:generateDebugResources UP-TO-DATE
:react-native-image-resizer:packageDebugResources UP-TO-DATE
:react-native-securerandom:compileDebugRenderscript UP-TO-DATE
:react-native-securerandom:generateDebugResValues UP-TO-DATE
:react-native-securerandom:generateDebugResources UP-TO-DATE
:react-native-securerandom:packageDebugResources UP-TO-DATE
:react-native-vector-icons:compileDebugRenderscript UP-TO-DATE
:react-native-vector-icons:generateDebugResValues UP-TO-DATE
:react-native-vector-icons:generateDebugResources UP-TO-DATE
:react-native-vector-icons:packageDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:bundleDebugJsAndAssets SKIPPED
:app:copyDebugIconFonts UP-TO-DATE
:app:mainApkListPersistenceDebug UP-TO-DATE
:app:createDebugCompatibleScreenManifests UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:splitsDiscoveryTaskDebug UP-TO-DATE
:react-native-camera:platformAttrExtractor UP-TO-DATE
:react-native-camera:generateDebugRFile UP-TO-DATE
:react-native-image-resizer:platformAttrExtractor UP-TO-DATE
:react-native-image-resizer:generateDebugRFile UP-TO-DATE
:react-native-securerandom:platformAttrExtractor UP-TO-DATE
:react-native-securerandom:generateDebugRFile UP-TO-DATE
:react-native-vector-icons:platformAttrExtractor UP-TO-DATE
:react-native-vector-icons:generateDebugRFile UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:react-native-camera:generateDebugBuildConfig UP-TO-DATE
:react-native-camera:prepareLintJar UP-TO-DATE
:react-native-camera:generateDebugSources UP-TO-DATE
:react-native-camera:javaPreCompileDebug UP-TO-DATE
:react-native-camera:compileDebugJavaWithJavac UP-TO-DATE
:react-native-camera:processDebugJavaRes NO-SOURCE
:react-native-camera:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
:react-native-image-resizer:generateDebugBuildConfig UP-TO-DATE
:react-native-image-resizer:prepareLintJar UP-TO-DATE
:react-native-image-resizer:generateDebugSources UP-TO-DATE
:react-native-image-resizer:javaPreCompileDebug UP-TO-DATE
:react-native-image-resizer:compileDebugJavaWithJavac UP-TO-DATE
:react-native-image-resizer:processDebugJavaRes NO-SOURCE
:react-native-image-resizer:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
:react-native-securerandom:generateDebugBuildConfig UP-TO-DATE
:react-native-securerandom:prepareLintJar UP-TO-DATE
:react-native-securerandom:generateDebugSources UP-TO-DATE
:react-native-securerandom:javaPreCompileDebug UP-TO-DATE
:react-native-securerandom:compileDebugJavaWithJavac UP-TO-DATE
:react-native-securerandom:processDebugJavaRes NO-SOURCE
:react-native-securerandom:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
:react-native-vector-icons:generateDebugBuildConfig UP-TO-DATE
:react-native-vector-icons:prepareLintJar UP-TO-DATE
:react-native-vector-icons:generateDebugSources UP-TO-DATE
:react-native-vector-icons:javaPreCompileDebug UP-TO-DATE
:react-native-vector-icons:compileDebugJavaWithJavac UP-TO-DATE
:react-native-vector-icons:processDebugJavaRes NO-SOURCE
:react-native-vector-icons:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
:app:javaPreCompileDebug UP-TO-DATE
:app:compileDebugJavaWithJavac UP-TO-DATE
:app:compileDebugNdk NO-SOURCE
:app:compileDebugSources UP-TO-DATE
:app:transformClassesWithDexBuilderForDebug UP-TO-DATE
:app:transformClassesWithMultidexlistForDebug UP-TO-DATE
:app:transformDexArchiveWithDexMergerForDebug UP-TO-DATE
:app:mergeDebugJniLibFolders UP-TO-DATE
:react-native-camera:compileDebugNdk NO-SOURCE
:react-native-camera:mergeDebugJniLibFolders UP-TO-DATE
:react-native-camera:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:react-native-camera:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
:react-native-image-resizer:compileDebugNdk NO-SOURCE
:react-native-image-resizer:mergeDebugJniLibFolders UP-TO-DATE
:react-native-image-resizer:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:react-native-image-resizer:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
:react-native-securerandom:compileDebugNdk NO-SOURCE
:react-native-securerandom:mergeDebugJniLibFolders UP-TO-DATE
:react-native-securerandom:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:react-native-securerandom:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
:react-native-vector-icons:compileDebugNdk NO-SOURCE
:react-native-vector-icons:mergeDebugJniLibFolders UP-TO-DATE
:react-native-vector-icons:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:react-native-vector-icons:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
:app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:app:processDebugJavaRes NO-SOURCE
:app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:app:validateSigningDebug UP-TO-DATE
:app:packageDebug UP-TO-DATE
:app:assembleDebug UP-TO-DATE
:app:installDebug
Installing APK 'app-debug.apk' on 'Pixel_2(AVD) - 8.0.0' for app:debug
Installed on 1 device.
BUILD SUCCESSFUL in 4s
104 actionable tasks: 1 executed, 103 up-to-date
Running adb -s emulator-5554 reverse tcp:8081 tcp:8081
Starting the app on emulator-5554 (adb -s emulator-5554 shell am start -n com.rentprofileagents/com.rentprofileagents.MainActivity)...
Starting: Intent { cmp=com.rentprofileagents/.MainActivity }
`
local.properties
sdk.dir=F\:\\Programs\\Android\\sdk
It runs fine if I downgrade the extension to 0.6.13
@Sterlingryan, version 0.6.16 also seems to work fine.
Yep you're right
Hey guys, I confirm that this is a bug that impact users on Windows targeting android apps, and I am working on a fix now. As workaround, you can comment sdk.dir=your-value string in android/local.properties file and set ANDROID_HOME environment variable for now.