Command: powershell -NoProfile -Command "$p='C:\Users\ash\Documents\AudioProcessPlatform\clients\android'; $w=Join-Path $p 'gradle\wrapper\gradle-wrapper.properties'; $sdk=$env:ANDROID_SDK_ROOT; if(-not $sdk){$sdk=$env:ANDROID_HOME}; if(-not $sdk){$cand='C:\Users\ash\AppData\Local\Android\Sdk'; if(Test-Path $cand){$sdk=$cand}}; [pscustomobject]@{project=$p; wrapper=(if(Test-Path $w){(Select-String -Path $w -Pattern 'distributionUrl').Line}else{''}); java=(Get-Command java -ErrorAction SilentlyContinue).Source; java_home=$env:JAVA_HOME; sdk=$sdk; build_tools=(if($sdk -and (Test-Path (Join-Path $sdk 'build-tools'))){(Get-ChildItem (Join-Path $sdk 'build-tools') -Directory | Select-Object -ExpandProperty Name)}else{@()}); platforms=(if($sdk -and (Test-Path (Join-Path $sdk 'platforms'))){(Get-ChildItem (Join-Path $sdk 'platforms') -Directory | Select-Object -ExpandProperty Name)}else{@()})} | ConvertTo-Json -Compress"
Directory: projects
Status: FAILED
Exit code: 1
Cancel Job Rerun Command Refresh
+ ... cand){$sdk=$cand}}; [pscustomobject]@{project=$p; wrapper=(if(Test-Pa ...
+ ~~
+ CategoryInfo : ObjectNotFound: (if:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
---
+ ~~
+ CategoryInfo : ObjectNotFound: (if:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
---if : The term 'if' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:329
+ ... cand){$sdk=$cand}}; [pscustomobject]@{project=$p; wrapper=(if(Test-Pa ...
+ ~~
+ CategoryInfo : ObjectNotFound: (if:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException