René's URL Explorer Experiment


Title: CLI 8.2.x cannot build plugin with targetSdk 32 and buildTools 32.0.0 · Issue #5660 · NativeScript/nativescript-cli · GitHub

Open Graph Title: CLI 8.2.x cannot build plugin with targetSdk 32 and buildTools 32.0.0 · Issue #5660 · NativeScript/nativescript-cli

X Title: CLI 8.2.x cannot build plugin with targetSdk 32 and buildTools 32.0.0 · Issue #5660 · NativeScript/nativescript-cli

Description: Issue Description When running ns plugin build using NS CLI 8.2.x, the following error raises: FAILURE: Build failed with an exception. * Where: Build file '/private/var/folders/5q/6zrvvtkj5_g7l948bjdttwwr0000gn/T/android-project2022230-...

Open Graph Description: Issue Description When running ns plugin build using NS CLI 8.2.x, the following error raises: FAILURE: Build failed with an exception. * Where: Build file '/private/var/folders/5q/6zrvvtkj5_g7l948...

X Description: Issue Description When running ns plugin build using NS CLI 8.2.x, the following error raises: FAILURE: Build failed with an exception. * Where: Build file '/private/var/folders/5q/6zrvvtkj5_g7...

Opengraph URL: https://github.com/NativeScript/nativescript-cli/issues/5660

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CLI 8.2.x cannot build plugin with targetSdk 32 and buildTools 32.0.0","articleBody":"### Issue Description\n\nWhen running ns plugin build using NS CLI 8.2.x, the following error raises:\r\n\r\n```\r\nFAILURE: Build failed with an exception.\r\n\r\n* Where:\r\nBuild file '/private/var/folders/5q/6zrvvtkj5_g7l948bjdttwwr0000gn/T/android-project2022230-40036-1rbjm2o.grn5/nativescript_context_apis/build.gradle' line: 38\r\n\r\n* What went wrong:\r\nA problem occurred evaluating root project 'nativescript_context_apis'.\r\n\u003e /private/var/folders/5q/6zrvvtkj5_g7l948bjdttwwr0000gn/platforms/android/dependencies.json (No such file or directory)\r\n\r\n* Try:\r\n\u003e Run with --stacktrace option to get the stack trace.\r\n\u003e Run with --info or --debug option to get more log output.\r\n\u003e Run with --scan to get full insights.\r\n\r\n* Get more help at https://help.gradle.org\r\n\r\nBUILD FAILED in 461ms\r\nFailed to build plugin nativescript-context-apis : \r\nError: Command ./gradlew failed with exit code 1\r\n```\r\n\r\nRolling back to CLI 8.1.5 temporally fixes the problem (defaults to targetSdk 31 and buildTools 30.0.3).\n\n### Reproduction\n\nhttps://github.com/GeoTecINIT/nativescript-context-apis\r\n\r\n1. Install latest NS CLI version\r\n2. clone\r\n3. cd publish\r\n4. run ./pack.sh\n\n### Relevant log output (if applicable)\n\n```shell\nTrying to get macOS version.\r\nExec system_profiler SPSoftwareDataType -detailLevel mini \r\n stdout: Software:\r\n\r\n    System Software Overview:\r\n\r\n      System Version: macOS 12.2.1 (21D62)\r\n      Kernel Version: Darwin 21.3.0\r\n\r\n \r\n stderr: \r\nmacOS version based on system_profiler is 12.2.\r\nLooking for project in '~/nativescript-context-apis/src'\r\nProject directory is '~/nativescript-context-apis/src'.\r\nNo config file found - falling back to ~/nativescript-context-apis/src/nativescript.config.ts.\r\nProject Config Service using legacy configuration...\r\nfailed to add embedded package.json data to config Error: ENOENT: no such file or directory, open '~/nativescript-context-apis/src/app/package.json'\r\n    at Object.openSync (node:fs:585:3)\r\n    at Object.readFileSync (node:fs:453:35)\r\n    at FileSystem.readFile (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:192:19)\r\n    at FileSystem.readText (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:202:21)\r\n    at FileSystem.readJson (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:205:27)\r\n    at ProjectConfigService.fallbackToLegacyNSConfig (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:238:50)\r\n    at ProjectConfigService.readConfig (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:139:25)\r\n    at ProjectData.initializeProjectDataFromContent (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/project-data.js:61:45)\r\n    at ProjectData.initializeProjectData (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/project-data.js:50:22)\r\n    at new ProjectDataService (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-data-service.js:40:25) {\r\n  errno: -2,\r\n  syscall: 'open',\r\n  code: 'ENOENT',\r\n  path: '~/nativescript-context-apis/src/app/package.json'\r\n}\r\nInitializing project identifiers. Config:  {}\r\nLoading extensions.\r\nCollecting system information...\r\nSystem information:\r\n{\r\n  \"platform\": \"darwin\",\r\n  \"shell\": \"/bin/zsh\",\r\n  \"os\": \"Darwin endpriv100.scom-glt.uminho.pt 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan  5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T8101 arm64\\n\",\r\n  \"procArch\": \"arm64\",\r\n  \"nodeVer\": \"16.13.1\",\r\n  \"npmVer\": \"8.3.2\",\r\n  \"nodeGypVer\": null,\r\n  \"nativeScriptCliVersion\": \"8.2.3\",\r\n  \"gitVer\": \"2.32.0 (Apple Git-132)\",\r\n  \"dotNetVer\": null,\r\n  \"javacVersion\": \"11.0.11\",\r\n  \"javaVersion\": \"11.0.11\",\r\n  \"javaPath\": \"~/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/211.7628.21.2111.8139111/Android Studio.app/Contents/jre/Contents/Home/bin/java\",\r\n  \"adbVer\": \"1.0.41\",\r\n  \"androidInstalled\": true,\r\n  \"monoVer\": null,\r\n  \"gradleVer\": null,\r\n  \"isAndroidSdkConfiguredCorrectly\": true,\r\n  \"xcodeVer\": \"13.3.0\",\r\n  \"xcodeprojLocation\": \"/opt/homebrew/bin/xcodeproj\",\r\n  \"itunesInstalled\": false,\r\n  \"cocoaPodsVer\": \"1.11.2\",\r\n  \"isCocoaPodsWorkingCorrectly\": true,\r\n  \"isCocoaPodsUpdateRequired\": false,\r\n  \"pythonInfo\": {\r\n    \"isInstalled\": true,\r\n    \"isSixPackageInstalled\": true\r\n  }\r\n}\r\nCurrent CLI version:  8.2.3\r\nProject dir from hooksArgs is: undefined.\r\nHooks directories: [\r\n  '~/nativescript-context-apis/src/hooks'\r\n]\r\nNo config file found - falling back to ~/nativescript-context-apis/src/nativescript.config.ts.\r\nProject Config Service using legacy configuration...\r\nfailed to add embedded package.json data to config Error: ENOENT: no such file or directory, open '~/nativescript-context-apis/src/app/package.json'\r\n    at Object.openSync (node:fs:585:3)\r\n    at Object.readFileSync (node:fs:453:35)\r\n    at FileSystem.readFile (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:192:19)\r\n    at FileSystem.readText (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:202:21)\r\n    at FileSystem.readJson (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:205:27)\r\n    at ProjectConfigService.fallbackToLegacyNSConfig (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:238:50)\r\n    at ProjectConfigService.readConfig (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:139:25)\r\n    at ProjectConfigService.getValue (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:157:27)\r\n    at HooksService.initialize (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/services/hooks-service.js:50:56)\r\n    at HooksService.\u003canonymous\u003e (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/services/hooks-service.js:80:18) {\r\n  errno: -2,\r\n  syscall: 'open',\r\n  code: 'ENOENT',\r\n  path: '~/nativescript-context-apis/src/app/package.json'\r\n}\r\nBeforeHookName for command resolveCommand is before-resolveCommand\r\nNo config file found - falling back to ~/nativescript-context-apis/src/nativescript.config.ts.\r\nProject Config Service using legacy configuration...\r\nfailed to add embedded package.json data to config Error: ENOENT: no such file or directory, open '~/nativescript-context-apis/src/app/package.json'\r\n    at Object.openSync (node:fs:585:3)\r\n    at Object.readFileSync (node:fs:453:35)\r\n    at FileSystem.readFile (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:192:19)\r\n    at FileSystem.readText (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:202:21)\r\n    at FileSystem.readJson (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:205:27)\r\n    at ProjectConfigService.fallbackToLegacyNSConfig (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:238:50)\r\n    at ProjectConfigService.readConfig (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:139:25)\r\n    at ProjectConfigService.getValue (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:157:27)\r\n    at HooksService.getCustomHooksByName (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/services/hooks-service.js:182:56)\r\n    at HooksService.\u003canonymous\u003e (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/services/hooks-service.js:87:42) {\r\n  errno: -2,\r\n  syscall: 'open',\r\n  code: 'ENOENT',\r\n  path: '~/nativescript-context-apis/src/app/package.json'\r\n}\r\nProject dir from hooksArgs is: undefined.\r\nHooks directories: [\r\n  '~/nativescript-context-apis/src/hooks'\r\n]\r\nNo config file found - falling back to ~/nativescript-context-apis/src/nativescript.config.ts.\r\nProject Config Service using legacy configuration...\r\nfailed to add embedded package.json data to config Error: ENOENT: no such file or directory, open '~/nativescript-context-apis/src/app/package.json'\r\n    at Object.openSync (node:fs:585:3)\r\n    at Object.readFileSync (node:fs:453:35)\r\n    at FileSystem.readFile (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:192:19)\r\n    at FileSystem.readText (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:202:21)\r\n    at FileSystem.readJson (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:205:27)\r\n    at ProjectConfigService.fallbackToLegacyNSConfig (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:238:50)\r\n    at ProjectConfigService.readConfig (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:139:25)\r\n    at ProjectConfigService.getValue (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:157:27)\r\n    at HooksService.initialize (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/services/hooks-service.js:50:56)\r\n    at HooksService.\u003canonymous\u003e (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/services/hooks-service.js:80:18) {\r\n  errno: -2,\r\n  syscall: 'open',\r\n  code: 'ENOENT',\r\n  path: '~/nativescript-context-apis/src/app/package.json'\r\n}\r\nAfterHookName for command resolveCommand is after-resolveCommand\r\nNo config file found - falling back to ~/nativescript-context-apis/src/nativescript.config.ts.\r\nProject Config Service using legacy configuration...\r\nfailed to add embedded package.json data to config Error: ENOENT: no such file or directory, open '~/nativescript-context-apis/src/app/package.json'\r\n    at Object.openSync (node:fs:585:3)\r\n    at Object.readFileSync (node:fs:453:35)\r\n    at FileSystem.readFile (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:192:19)\r\n    at FileSystem.readText (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:202:21)\r\n    at FileSystem.readJson (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:205:27)\r\n    at ProjectConfigService.fallbackToLegacyNSConfig (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:238:50)\r\n    at ProjectConfigService.readConfig (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:139:25)\r\n    at ProjectConfigService.getValue (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:157:27)\r\n    at HooksService.getCustomHooksByName (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/services/hooks-service.js:182:56)\r\n    at HooksService.\u003canonymous\u003e (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/services/hooks-service.js:87:42) {\r\n  errno: -2,\r\n  syscall: 'open',\r\n  code: 'ENOENT',\r\n  path: '~/nativescript-context-apis/src/app/package.json'\r\n}\r\nTrying to handle SIGINT event. CLI overrides this behavior and does not allow handling SIGINT as this causes issues with Ctrl + C in terminal.\r\nThe stackTrace of the location trying to handle SIGINT is:\r\n    at process.on (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/nativescript-cli.js:26:28)\r\n    at ~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/node_modules/signal-exit/index.js:158:17\r\n    at Array.filter (\u003canonymous\u003e)\r\n    at load (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/node_modules/signal-exit/index.js:156:23)\r\n    at module.exports (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/node_modules/signal-exit/index.js:62:7)\r\n    at Object.\u003canonymous\u003e (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/node_modules/proper-lockfile/lib/lockfile.js:331:1)\r\n    at Module._compile (node:internal/modules/cjs/loader:1101:14)\r\n    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)\r\n    at Module.load (node:internal/modules/cjs/loader:981:32)\r\n    at Function.Module._load (node:internal/modules/cjs/loader:822:12)\r\nspawn: ~/.nvm/versions/node/v16.13.1/bin/node \"~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/detached-processes/cleanup-process.js\" \"~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/bootstrap.js\"\r\nInitializing analytics statuses.\r\nAnalytics statuses:  { TrackFeatureUsage: 'enabled', TrackExceptions: 'enabled' }\r\nWill send the following information to Google Analytics: {\r\n  type: 'googleAnalyticsData',\r\n  category: 'CLI',\r\n  googleAnalyticsDataType: 'pageview',\r\n  path: 'plugin build',\r\n  title: 'plugin build',\r\n  customDimensions: { cd5: 'CLI', cd2: 'Pure TypeScript', cd9: 'false' }\r\n}\r\nspawn: ~/.nvm/versions/node/v16.13.1/bin/node \"~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/analytics/analytics-broker-process.js\" \"~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/bootstrap.js\"\r\nWill send the following information to Google Analytics: {\r\n  type: 'googleAnalyticsData',\r\n  category: 'CLI',\r\n  googleAnalyticsDataType: 'event',\r\n  action: 'Options',\r\n  label: '{\"log\":\"trace\",\"$0\":\"ns\",\"profileDir\":\"private\",\"bundle\":\"webpack\"}',\r\n  customDimensions: { cd2: 'Pure TypeScript', cd9: 'false', cd5: 'CLI' },\r\n  value: undefined\r\n}\r\nShasum of file ~/nativescript-context-apis/src/platforms/android/README.md is 45f2f63427be0a461a7e2dfd5ff0ad5bab64068f\r\nShasum of file ~/nativescript-context-apis/src/platforms/android/AndroidManifest.xml is a49c6297b29f6fca5b1b61650dae089ff2181ba0\r\nShasum of file ~/nativescript-context-apis/src/platforms/android/include.gradle is c5d0724464fa299cfa6642b73471c394124e08da\r\nShasum of file ~/nativescript-context-apis/src/platforms/android/contextapis-release.aar is 92983b4b520ca94459e16bdc33cb26cf4ca8b2e8\r\nNo config file found - falling back to ~/nativescript-context-apis/src/nativescript.config.ts.\r\nProject Config Service using legacy configuration...\r\nfailed to add embedded package.json data to config Error: ENOENT: no such file or directory, open '~/nativescript-context-apis/src/app/package.json'\r\n    at Object.openSync (node:fs:585:3)\r\n    at Object.readFileSync (node:fs:453:35)\r\n    at FileSystem.readFile (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:192:19)\r\n    at FileSystem.readText (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:202:21)\r\n    at FileSystem.readJson (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:205:27)\r\n    at ProjectConfigService.fallbackToLegacyNSConfig (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:238:50)\r\n    at ProjectConfigService.readConfig (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:139:25)\r\n    at ProjectConfigService.getValue (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:157:27)\r\n    at PackageManager.\u003canonymous\u003e (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/package-manager.js:108:61)\r\n    at Generator.next (\u003canonymous\u003e) {\r\n  errno: -2,\r\n  syscall: 'open',\r\n  code: 'ENOENT',\r\n  path: '~/nativescript-context-apis/src/app/package.json'\r\n}\r\nExec npm view @nativescript/android  dist-tags --json \r\n stdout: {\r\n  \"rc\": \"8.2.0-rc.0\",\r\n  \"latest\": \"8.2.2\",\r\n  \"alpha\": \"8.2.0-alpha.11\"\r\n}\r\n \r\n stderr: \r\nExec npm view @nativescript/android@8.2.2  version_info --json \r\n stdout: {\r\n  \"v8\": \"8.3.110.9\",\r\n  \"gradle\": \"7.4\",\r\n  \"gradleAndroid\": \"7.1.2\",\r\n  \"ndk\": \"r21\",\r\n  \"ndkApiLevel\": \"122\",\r\n  \"minSdk\": \"17\",\r\n  \"compileSdk\": \"31\",\r\n  \"buildTools\": \"31.0.0\",\r\n  \"kotlin\": \"1.6.0\"\r\n}\r\n \r\n stderr: \r\nGot gradle versions {\"gradleVersion\":\"7.4\",\"gradleAndroidPluginVersion\":\"7.1.2\"} from the latest runtime v8.2.2\r\nProject dir from hooksArgs is: undefined.\r\nHooks directories: [\r\n  '~/nativescript-context-apis/src/hooks'\r\n]\r\nNo config file found - falling back to ~/nativescript-context-apis/src/nativescript.config.ts.\r\nProject Config Service using legacy configuration...\r\nfailed to add embedded package.json data to config Error: ENOENT: no such file or directory, open '~/nativescript-context-apis/src/app/package.json'\r\n    at Object.openSync (node:fs:585:3)\r\n    at Object.readFileSync (node:fs:453:35)\r\n    at FileSystem.readFile (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:192:19)\r\n    at FileSystem.readText (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:202:21)\r\n    at FileSystem.readJson (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:205:27)\r\n    at ProjectConfigService.fallbackToLegacyNSConfig (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:238:50)\r\n    at ProjectConfigService.readConfig (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:139:25)\r\n    at ProjectConfigService.getValue (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:157:27)\r\n    at HooksService.initialize (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/services/hooks-service.js:50:56)\r\n    at HooksService.\u003canonymous\u003e (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/services/hooks-service.js:80:18) {\r\n  errno: -2,\r\n  syscall: 'open',\r\n  code: 'ENOENT',\r\n  path: '~/nativescript-context-apis/src/app/package.json'\r\n}\r\nBeforeHookName for command buildAndroidPlugin is before-buildAndroidPlugin\r\nNo config file found - falling back to ~/nativescript-context-apis/src/nativescript.config.ts.\r\nProject Config Service using legacy configuration...\r\nfailed to add embedded package.json data to config Error: ENOENT: no such file or directory, open '~/nativescript-context-apis/src/app/package.json'\r\n    at Object.openSync (node:fs:585:3)\r\n    at Object.readFileSync (node:fs:453:35)\r\n    at FileSystem.readFile (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:192:19)\r\n    at FileSystem.readText (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:202:21)\r\n    at FileSystem.readJson (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/file-system.js:205:27)\r\n    at ProjectConfigService.fallbackToLegacyNSConfig (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:238:50)\r\n    at ProjectConfigService.readConfig (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:139:25)\r\n    at ProjectConfigService.getValue (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/project-config-service.js:157:27)\r\n    at HooksService.getCustomHooksByName (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/services/hooks-service.js:182:56)\r\n    at HooksService.\u003canonymous\u003e (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/services/hooks-service.js:87:42) {\r\n  errno: -2,\r\n  syscall: 'open',\r\n  code: 'ENOENT',\r\n  path: '~/nativescript-context-apis/src/app/package.json'\r\n}\r\nSelected targetSdk is: 32\r\nInstalled Android Targets are:  [ 'android-29', 'android-30', 'android-31', 'android-32' ]\r\nSelected buildToolsVersion is: 32.0.0\r\nspawn: /var/folders/5q/6zrvvtkj5_g7l948bjdttwwr0000gn/T/android-project2022230-44184-xpwr89.jmdfq/nativescript_context_apis/gradlew \"-p\" \"/var/folders/5q/6zrvvtkj5_g7l948bjdttwwr0000gn/T/android-project2022230-44184-xpwr89.jmdfq/nativescript_context_apis\" \"assembleRelease\" \"-PcompileSdk=android-32\" \"-PbuildToolsVersion=32.0.0\" \"-PappPath=~/nativescript-context-apis/src/app\" \"-PappResourcesPath=~/nativescript-context-apis/src/App_Resources\"\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* Where:\r\nBuild file '/private/var/folders/5q/6zrvvtkj5_g7l948bjdttwwr0000gn/T/android-project2022230-44184-xpwr89.jmdfq/nativescript_context_apis/build.gradle' line: 38\r\n\r\n* What went wrong:\r\nA problem occurred evaluating root project 'nativescript_context_apis'.\r\n\u003e /private/var/folders/5q/6zrvvtkj5_g7l948bjdttwwr0000gn/platforms/android/dependencies.json (No such file or directory)\r\n\r\n* Try:\r\n\u003e Run with --stacktrace option to get the stack trace.\r\n\u003e Run with --info or --debug option to get more log output.\r\n\u003e Run with --scan to get full insights.\r\n\r\n* Get more help at https://help.gradle.org\r\n\r\nDeprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.\r\n\r\nYou can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.\r\n\r\nSee https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings\r\n\r\nBUILD FAILED in 783ms\r\nFailed to build plugin nativescript-context-apis : \r\nError: Command ./gradlew failed with exit code 1\r\nError: Failed to build plugin nativescript-context-apis : \r\nError: Command ./gradlew failed with exit code 1\r\n    at Errors.failWithOptions (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/errors.js:157:27)\r\n    at Errors.fail (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/common/errors.js:130:21)\r\n    at AndroidPluginBuildService.\u003canonymous\u003e (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/android-plugin-build-service.js:470:30)\r\n    at Generator.throw (\u003canonymous\u003e)\r\n    at rejected (~/.nvm/versions/node/v16.13.1/lib/node_modules/nativescript/lib/services/android-plugin-build-service.js:12:65)\r\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\r\n```\n```\n\n\n### Environment\n\n```yaml\r\nOS: macOS 12.2.1\r\nCPU: (8) arm64 Apple M1\r\nShell: /bin/zsh\r\nnode: 16.13.1\r\nnpm: 8.3.2\r\nnativescript: 8.2.3\r\n\r\n# android\r\njava: 11.0.11\r\nndk: Not Found\r\napis: 29, 30, 31, 32\r\nbuild_tools: 29.0.0, 30.0.3, 32.0.0\r\nsystem_images:\r\n  - android-31 | Google Play ARM 64 v8a\r\n  - android-32 | Google Play ARM 64 v8a\r\n\r\n# ios\r\nxcode: 13.3/13E113\r\ncocoapods: 1.11.2\r\npython: 2.7.18\r\npython3: 3.8.9\r\nruby: 2.6.8\r\nplatforms:\r\n  - DriverKit 21.4\r\n  - iOS 15.4\r\n  - macOS 12.3\r\n  - tvOS 15.4\r\n  - watchOS 8.5\r\n```\r\n\r\n### Dependencies\r\n\r\n```json\r\n\"dependencies\": {\r\n  \"@nativescript/geolocation\": \"^8.0.2\",\r\n  \"@triniwiz/nativescript-couchbase\": \"~1.3.1\",\r\n  \"nativescript-permissions\": \"1.3.11\",\r\n  \"rxjs\": \"^7.5.5\"\r\n},\r\n\"devDependencies\": {\r\n  \"@nativescript/core\": \"~8.2.0\",\r\n  \"@nativescript/types\": \"~8.2.0\",\r\n  \"prompt\": \"^1.0.0\",\r\n  \"rimraf\": \"^2.6.3\",\r\n  \"semver\": \"^5.6.0\",\r\n  \"tslint\": \"^5.12.1\",\r\n  \"typescript\": \"~4.5.5\"\r\n}\r\n```\n\n### Please accept these terms\n\n- [X] I have searched the [existing issues](https://github.com/NativeScript/nativescript-cli/issues) as well as [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript) and this has not been posted before\n- [X] This is a bug report\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)","author":{"url":"https://github.com/agonper","@type":"Person","name":"agonper"},"datePublished":"2022-03-30T17:22:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/5660/nativescript-cli/issues/5660"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c4c8abfe-8546-85e9-6463-c7598f19ee66
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA176:3DE4F1:14BA2F:1D5EF7:696E39A8
html-safe-noncef2fcba7a64420b48264662c654045a07b1b10f1cd8255873c7769a9eff75ec51
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTc2OjNERTRGMToxNEJBMkY6MUQ1RUY3OjY5NkUzOUE4IiwidmlzaXRvcl9pZCI6IjI2ODUwMDgzNDU5ODU1OTU4MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac933f418a8d9c18c64acd70f13e7e2289823a8eeb14e8ef0ccb8e56eebe672c8a
hovercard-subject-tagissue:1186766150
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-cli/5660/issue_layout
twitter:imagehttps://opengraph.githubassets.com/86346d61a5e1d8de16c238067e1ce3a0852c12a242d024169a05e5d5e67b103f/NativeScript/nativescript-cli/issues/5660
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/86346d61a5e1d8de16c238067e1ce3a0852c12a242d024169a05e5d5e67b103f/NativeScript/nativescript-cli/issues/5660
og:image:altIssue Description When running ns plugin build using NS CLI 8.2.x, the following error raises: FAILURE: Build failed with an exception. * Where: Build file '/private/var/folders/5q/6zrvvtkj5_g7l948...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameagonper
hostnamegithub.com
expected-hostnamegithub.com
Noneb39958d54b39d52b9fc890ff25687d2383a83e003512d4480499b2dbd046839f
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id21347346
octolytics-dimension-repository_nwoNativeScript/nativescript-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21347346
octolytics-dimension-repository_network_root_nwoNativeScript/nativescript-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasefba10be4ea34590240b2f4a625fc807362c2d5b8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues/5660#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fissues%2F5660
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fissues%2F5660
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2Fnativescript-cli
Reloadhttps://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues/5660
Reloadhttps://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues/5660
Reloadhttps://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues/5660
NativeScript https://patch-diff.githubusercontent.com/NativeScript
nativescript-clihttps://patch-diff.githubusercontent.com/NativeScript/nativescript-cli
Please reload this pagehttps://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues/5660
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FNativeScript%2Fnativescript-cli
Fork 198 https://patch-diff.githubusercontent.com/login?return_to=%2FNativeScript%2Fnativescript-cli
Star 1k https://patch-diff.githubusercontent.com/login?return_to=%2FNativeScript%2Fnativescript-cli
Code https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli
Issues 361 https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues
Pull requests 13 https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/pulls
Actions https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/actions
Projects 0 https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/security
Please reload this pagehttps://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues/5660
Insights https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/pulse
Code https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli
Issues https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues
Pull requests https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/pulls
Actions https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/actions
Projects https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/projects
Security https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/security
Insights https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/NativeScript/nativescript-cli/issues/5660
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/NativeScript/nativescript-cli/issues/5660
CLI 8.2.x cannot build plugin with targetSdk 32 and buildTools 32.0.0https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues/5660#top
bug-pending-triageReported bug, pending triage to confirm.https://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22bug-pending-triage%22
https://github.com/agonper
https://github.com/agonper
agonperhttps://github.com/agonper
on Mar 30, 2022https://github.com/NativeScript/nativescript-cli/issues/5660#issue-1186766150
https://github.com/GeoTecINIT/nativescript-context-apishttps://github.com/GeoTecINIT/nativescript-context-apis
existing issueshttps://github.com/NativeScript/nativescript-cli/issues
StackOverflowhttps://stackoverflow.com/questions/tagged/nativescript
Code of Conducthttps://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc
bug-pending-triageReported bug, pending triage to confirm.https://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22bug-pending-triage%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.