Trying to run on windows get ANDROID_SDK_ROOT ENV variable not found
wayne-o opened this issue · 0 comments
wayne-o commented
Full error:
ANDROID_SDK_ROOT ENV variable not found It is recommended to set this value in bash_profile or bashrc
Cannot read property 'adb' of undefined
Cannot read property 'adb' of undefined
Stack Trace and Error Report: C:\Users\cloud\AppData\Local\Temp/error.dump.c343f197cb190862fbc9142bef1987af.log
log:
=================================================================================
ENV Summary:
TIME: Fri Sep 10 2021 16:50:49 GMT+0100 (British Summer Time)
TITLE: corber
ARGV:
- C:\Program Files\nodejs\node.exe
- C:\Users\cloud\AppData\Roaming\npm\node_modules\corber\bin\corber
- start
EXEC_PATH: C:\Program Files\nodejs\node.exe
TMPDIR: C:\Users\cloud\AppData\Local\Temp
SHELL: null
PATH:
- C
- \Users\cloud\AppData\Local\Programs\Python\Python39\Scripts\;C
- \Users\cloud\AppData\Local\Programs\Python\Python39\;C
- \Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C
- \Program Files\Zulu\zulu-8\bin\;C
- \Program Files (x86)\AdoptOpenJDK\jre-11.0.11.9-hotspot\bin;C
- \Program Files\Oculus\Support\oculus-runtime;C
- \Windows\system32;C
- \Windows;C
- \Windows\System32\Wbem;C
- \Windows\System32\WindowsPowerShell\v1.0\;C
- \Windows\System32\OpenSSH\;C
- \Program Files\Microsoft SQL Server\130\Tools\Binn\;C
- \Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C
- \Program Files\Git\cmd;C
- \Program Files (x86)\Yarn\bin\;C
- \ProgramData\chocolatey\bin;C
- \Program Files\dotnet\;C
- \Program Files\OpenJDK\jdk-16.0.1\bin;C
- \ProgramData\chocolatey\lib\maven\apache-maven-3.8.1\bin;;C
- \Program Files\Docker\Docker\resources\bin;C
- \ProgramData\DockerDesktop\version-bin;C
- \Program Files\nodejs\;C
- \Users\cloud\AppData\Local\Microsoft\WindowsApps;C
- \Users\cloud\AppData\Local\Yarn\bin;C
- \Users\cloud\AppData\Local\Programs\Azure Data Studio\bin;C
- \Users\cloud\AppData\Local\GitHubDesktop\bin;C
- \Users\cloud\AppData\Local\Programs\Microsoft VS Code\bin;C
- \Users\cloud\.dotnet\tools;C
- \Users\cloud\AppData\Roaming\npm
PLATFORM: win32 x64
FREEMEM: 67529838592
TOTALMEM: 85725679616
UPTIME: 935
LOADAVG: 0,0,0
CPUS:
- Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz - 3400
- Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz - 3400
- Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz - 3400
- Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz - 3400
- Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz - 3400
- Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz - 3400
- Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz - 3400
- Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz - 3400
- Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz - 3400
- Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz - 3400
- Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz - 3400
- Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz - 3400
ENDIANNESS: LE
VERSIONS:
- ares: 1.17.2
- brotli: 1.0.9
- cldr: 39.0
- icu: 69.1
- llhttp: 2.1.3
- modules: 83
- napi: 8
- nghttp2: 1.42.0
- node: 14.17.6
- openssl: 1.1.1l
- tz: 2021a
- unicode: 13.0
- uv: 1.41.0
- v8: 8.4.371.23-node.76
- zlib: 1.2.11
ERROR Summary:
- broccoliBuilderErrorStack: [undefined]
- code: [undefined]
- codeFrame: [undefined]
- errorMessage: Cannot read property 'adb' of undefined
- errorType: [undefined]
- location:
- column: [undefined]
- file: [undefined]
- line: [undefined]
- message: Cannot read property 'adb' of undefined
- name: TypeError
- nodeAnnotation: [undefined]
- nodeName: [undefined]
- originalErrorMessage: [undefined]
- stack: TypeError: Cannot read property 'adb' of undefined
at module.exports (C:\Users\cloud\AppData\Roaming\npm\node_modules\corber\lib\targets\android\tasks\list-devices.js:29:27)
at Class.getInstalledDevices (C:\Users\cloud\AppData\Roaming\npm\node_modules\corber\lib\commands\start.js:138:28)
at Class.selectDevice (C:\Users\cloud\AppData\Roaming\npm\node_modules\corber\lib\commands\start.js:90:17)
at C:\Users\cloud\AppData\Roaming\npm\node_modules\corber\lib\commands\start.js:218:33
at tryCatcher (C:\Users\cloud\AppData\Roaming\npm\node_modules\corber\node_modules\rsvp\dist\rsvp.js:326:21)
at invokeCallback (C:\Users\cloud\AppData\Roaming\npm\node_modules\corber\node_modules\rsvp\dist\rsvp.js:498:33)
at publish (C:\Users\cloud\AppData\Roaming\npm\node_modules\corber\node_modules\rsvp\dist\rsvp.js:484:9)
at flush (C:\Users\cloud\AppData\Roaming\npm\node_modules\corber\node_modules\rsvp\dist\rsvp.js:2441:7)
at processTicksAndRejections (internal/process/task_queues.js:77:11)
=================================================================================
System settings:
Can also confirm I have an emulator running: