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
Domain: patch-diff.githubusercontent.com
{"@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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c4c8abfe-8546-85e9-6463-c7598f19ee66 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A176:3DE4F1:14BA2F:1D5EF7:696E39A8 |
| html-safe-nonce | f2fcba7a64420b48264662c654045a07b1b10f1cd8255873c7769a9eff75ec51 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTc2OjNERTRGMToxNEJBMkY6MUQ1RUY3OjY5NkUzOUE4IiwidmlzaXRvcl9pZCI6IjI2ODUwMDgzNDU5ODU1OTU4MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 933f418a8d9c18c64acd70f13e7e2289823a8eeb14e8ef0ccb8e56eebe672c8a |
| hovercard-subject-tag | issue:1186766150 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-cli/5660/issue_layout |
| twitter:image | https://opengraph.githubassets.com/86346d61a5e1d8de16c238067e1ce3a0852c12a242d024169a05e5d5e67b103f/NativeScript/nativescript-cli/issues/5660 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/86346d61a5e1d8de16c238067e1ce3a0852c12a242d024169a05e5d5e67b103f/NativeScript/nativescript-cli/issues/5660 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | agonper |
| hostname | github.com |
| expected-hostname | github.com |
| None | b39958d54b39d52b9fc890ff25687d2383a83e003512d4480499b2dbd046839f |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 21347346 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21347346 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fba10be4ea34590240b2f4a625fc807362c2d5b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width