Native Builder

1
Hello All,   I tried to Build a Native Mobile but it's not working as this error appears in the app center   ##[section]Starting: Build ##[section]Starting: Initialize job Agent name: 'Hosted Agent' Agent machine name: 'Mac-1707886412711' Current agent version: '3.232.3' ##[group]Operating System macOS 11.7.10 20G1427 ##[endgroup] ##[group]Runner Image Image: macos-11 Version: 20240127.1 Included Software: https://github.com/actions/runner-images/blob/macOS-11/20240127.1/images/macos/macos-11-Readme.md Image Release: https://github.com/actions/runner-images/releases/tag/macOS-11%2F20240127.1 ##[endgroup] ##[group]Runner Image Provisioner 2.0.341.1+ea3907f30f87ddf37e44fa45b753abddb03811b4 ##[endgroup] Current image version: '20240127.1' Agent running as: 'runner' Prepare build directory. Set build variables. Download all required tasks. Downloading task: PowerShell (2.232.1) Downloading task: ShellScript (2.231.1) Downloading task: Gradle (1.128.0) Downloading task: CopyFiles (2.231.1) Downloading task: PublishBuildArtifacts (1.231.1) Checking job knob settings. Knob: AgentToolsDirectory = /Users/runner/hostedtoolcache Source: ${AGENT_TOOLSDIRECTORY} Knob: AgentEnablePipelineArtifactLargeChunkSize = true Source: $(AGENT_ENABLE_PIPELINEARTIFACT_LARGE_CHUNK_SIZE) Knob: ProcessHandlerTelemetry = true Source: $(AZP_75787_ENABLE_COLLECT) Knob: IgnoreVSTSTaskLib = true Source: $(AZP_AGENT_IGNORE_VSTSTASKLIB) Knob: FailJobWhenAgentDies = true Source: $(FAIL_JOB_WHEN_AGENT_DIES) Knob: CheckForTaskDeprecation = true Source: $(AZP_AGENT_CHECK_FOR_TASK_DEPRECATION) Finished checking job knob settings. Start tracking orphan processes. ##[section]Finishing: Initialize job ##[section]Async Command Start: DetectDockerContainer ##[section]Async Command End: DetectDockerContainer ##[section]Async Command Start: DetectDockerContainer ##[section]Async Command End: DetectDockerContainer ##[section]Starting: Checkout mwmaup-eservicesmobile@master to s ============================================================================== Task : Get sources Description : Get sources from a repository. Supports Git, TfsVC, and SVN repositories. Version : 1.0.0 Author : Microsoft Help : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199) ============================================================================== Syncing repository: mwmaup-eservicesmobile (ExternalGit) ##[command]git version git version 2.43.0 ##[command]git lfs version git-lfs/3.4.1 (GitHub; darwin amd64; go 1.21.6) ##[command]git init "/Users/runner/work/1/s" hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint:   git config --global init.defaultBranch <name> hint: hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and hint: 'development'. The just-created branch can be renamed via this command: hint: hint:   git branch -m <name> Initialized empty Git repository in /Users/runner/work/1/s/.git/ ##[command]git remote add origin https://github.com/qusaihalaseh/mwmaup-eservicesmobile.git ##[command]git config gc.auto 0 ##[command]git config --get-all http.https://github.com/qusaihalaseh/mwmaup-eservicesmobile.git.extraheader ##[command]git config --get-all http.extraheader ##[command]git config --get-regexp .*extraheader ##[command]git config --get-all http.proxy ##[command]git config http.version HTTP/1.1 ##[command]git remote set-url origin https://***:***@github.com/qusaihalaseh/mwmaup-eservicesmobile.git ##[command]git remote set-url --push origin https://***:***@github.com/qusaihalaseh/mwmaup-eservicesmobile.git ##[command]git lfs install --local Updated Git hooks. Git LFS initialized. ##[command]git config remote.origin.lfsurl https://***:***@github.com/qusaihalaseh/mwmaup-eservicesmobile.git/info/lfs ##[command]git config remote.origin.lfspushurl https://***:***@github.com/qusaihalaseh/mwmaup-eservicesmobile.git/info/lfs ##[command]git fetch --force --tags --prune --prune-tags --progress --no-recurse-submodules origin remote: Enumerating objects: 367, done. remote: Counting objects: 0% (1/367) remote: Counting objects: 1% (4/367) remote: Counting objects: 2% (8/367) remote: Counting objects: 3% (12/367) remote: Counting objects: 4% (15/367) remote: Counting objects: 5% (19/367) remote: Counting objects: 6% (23/367) remote: Counting objects: 7% (26/367) remote: Counting objects: 8% (30/367) remote: Counting objects: 9% (34/367) remote: Counting objects: 10% (37/367) remote: Counting objects: 11% (41/367) remote: Counting objects: 12% (45/367) remote: Counting objects: 13% (48/367) remote: Counting objects: 14% (52/367) remote: Counting objects: 15% (56/367) remote: Counting objects: 16% (59/367) remote: Counting objects: 17% (63/367) remote: Counting objects: 18% (67/367) remote: Counting objects: 19% (70/367) remote: Counting objects: 20% (74/367) remote: Counting objects: 21% (78/367) remote: Counting objects: 22% (81/367) remote: Counting objects: 23% (85/367) remote: Counting objects: 24% (89/367) remote: Counting objects: 25% (92/367) remote: Counting objects: 26% (96/367) remote: Counting objects: 27% (100/367) remote: Counting objects: 28% (103/367) remote: Counting objects: 29% (107/367) remote: Counting objects: 30% (111/367) remote: Counting objects: 31% (114/367) remote: Counting objects: 32% (118/367) remote: Counting objects: 33% (122/367) remote: Counting objects: 34% (125/367) remote: Counting objects: 35% (129/367) remote: Counting objects: 36% (133/367) remote: Counting objects: 37% (136/367) remote: Counting objects: 38% (140/367) remote: Counting objects: 39% (144/367) remote: Counting objects: 40% (147/367) remote: Counting objects: 41% (151/367) remote: Counting objects: 42% (155/367) remote: Counting objects: 43% (158/367) remote: Counting objects: 44% (162/367) remote: Counting objects: 45% (166/367) remote: Counting objects: 46% (169/367) remote: Counting objects: 47% (173/367) remote: Counting objects: 48% (177/367) remote: Counting objects: 49% (180/367) remote: Counting objects: 50% (184/367) remote: Counting objects: 51% (188/367) remote: Counting objects: 52% (191/367) remote: Counting objects: 53% (195/367) remote: Counting objects: 54% (199/367) remote: Counting objects: 55% (202/367) remote: Counting objects: 56% (206/367) remote: Counting objects: 57% (210/367) remote: Counting objects: 58% (213/367) remote: Counting objects: 59% (217/367) remote: Counting objects: 60% (221/367) remote: Counting objects: 61% (224/367) remote: Counting objects: 62% (228/367) remote: Counting objects: 63% (232/367) remote: Counting objects: 64% (235/367) remote: Counting objects: 65% (239/367) remote: Counting objects: 66% (243/367) remote: Counting objects: 67% (246/367) remote: Counting objects: 68% (250/367) remote: Counting objects: 69% (254/367) remote: Counting objects: 70% (257/367) remote: Counting objects: 71% (261/367) remote: Counting objects: 72% (265/367) remote: Counting objects: 73% (268/367) remote: Counting objects: 74% (272/367) remote: Counting objects: 75% (276/367) remote: Counting objects: 76% (279/367) remote: Counting objects: 77% (283/367) remote: Counting objects: 78% (287/367) remote: Counting objects: 79% (290/367) remote: Counting objects: 80% (294/367) remote: Counting objects: 81% (298/367) remote: Counting objects: 82% (301/367) remote: Counting objects: 83% (305/367) remote: Counting objects: 84% (309/367) remote: Counting objects: 85% (312/367) remote: Counting objects: 86% (316/367) remote: Counting objects: 87% (320/367) remote: Counting objects: 88% (323/367) remote: Counting objects: 89% (327/367) remote: Counting objects: 90% (331/367) remote: Counting objects: 91% (334/367) remote: Counting objects: 92% (338/367) remote: Counting objects: 93% (342/367) remote: Counting objects: 94% (345/367) remote: Counting objects: 95% (349/367) remote: Counting objects: 96% (353/367) remote: Counting objects: 97% (356/367) remote: Counting objects: 98% (360/367) remote: Counting objects: 99% (364/367) remote: Counting objects: 100% (367/367) remote: Counting objects: 100% (367/367), done. remote: Compressing objects: 100% (335/335), done. Receiving objects: 90% (331/367), 7.90 MiB | 7.75 MiB/s remote: Total 367 (delta 67), reused 0 (delta 0), pack-reused 0 Receiving objects: 100% (367/367), 8.02 MiB | 7.82 MiB/s, done. Resolving deltas: 100% (67/67), done. From https://github.com/qusaihalaseh/mwmaup-eservicesmobile * [new branch] developer -> origin/developer * [new branch] master -> origin/master ##[command]git checkout cbb9aa48c1b804eec51cd0da7a92bf5effe8cc4b -- .lfsconfig error: pathspec '.lfsconfig' did not match any file(s) known to git ##[command]git lfs fetch origin cbb9aa48c1b804eec51cd0da7a92bf5effe8cc4b fetch: Fetching reference cbb9aa48c1b804eec51cd0da7a92bf5effe8cc4b ##[command]git checkout --progress --force cbb9aa48c1b804eec51cd0da7a92bf5effe8cc4b HEAD is now at cbb9aa4 [NBUI] Commit local changes ##[command]git submodule sync --recursive ##[command]git submodule update --init --force --recursive ##[command]git remote set-url origin https://github.com/qusaihalaseh/mwmaup-eservicesmobile.git ##[command]git remote set-url --push origin https://github.com/qusaihalaseh/mwmaup-eservicesmobile.git ##[command]git config --unset-all remote.origin.lfsurl ##[command]git config --unset-all remote.origin.lfspushurl ##[section]Finishing: Checkout mwmaup-eservicesmobile@master to s ##[section]Starting: Install build scripts ============================================================================== Task : PowerShell Description : Run a PowerShell script on Linux, macOS, or Windows Version : 2.232.1 Author : Microsoft Corporation Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell ============================================================================== Generating script. ========================== Starting Command Output =========================== [command]/usr/local/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command . '/Users/runner/work/_temp/f147b7e9-a421-4950-85f9-b2cd9c37a4a1.ps1' Reinstalling Gradle init script plugins from /Users/runner/runners/3.232.3/scripts/gradle-init-script-plugins...   ##[section]Finishing: Install build scripts ##[section]Starting: Tag build ============================================================================== Task : Shell script Description : Run a shell script using Bash Version : 2.231.1 Author : Microsoft Corporation Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/shell-script ============================================================================== [command]/bin/bash /Users/runner/runners/3.232.3/scripts/emit-tags.sh continuous,android,tests,android-app-bundle   ##[section]Async Command Start: Add Build Tag Build '7' has following tags now: normal, continuous ##[section]Async Command End: Add Build Tag ##[section]Async Command Start: Add Build Tag Build '7' has following tags now: normal, android, android-app-bundle, continuous ##[section]Async Command End: Add Build Tag ##[section]Async Command Start: Add Build Tag Build '7' has following tags now: normal, tests, android, android-app-bundle, continuous ##[section]Async Command End: Add Build Tag ##[section]Async Command Start: Add Build Tag Build '7' has following tags now: normal, android-app-bundle, continuous ##[section]Async Command End: Add Build Tag ##[section]Finishing: Tag build ##[section]Starting: Gradle Task ============================================================================== Task : Gradle Description : Build using a Gradle wrapper script Version : 1.128.0 Author : Microsoft Corporation Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613720) ============================================================================== (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr (node:2421) Warning: Use Cipheriv for counter mode of aes-256-ctr SYSTEMVSSCONNECTION exists true [command]/Users/runner/work/1/s/android/gradlew -DAPPCENTER_BUILD_VERSION=7 -DMOBILECENTER_BUILD_VERSION=7 -p android clean :app:assembleAppstoreRelease :app:bundleAppstoreRelease :app:testAppstoreRelease :app:lintAppstoreRelease Downloading https://services.gradle.org/distributions/gradle-6.5-all.zip ...........................................................................................................................................   Welcome to Gradle 6.5!   Here are the highlights of this release: - Experimental file-system watching - Improved version ordering - New samples   For more details see https://docs.gradle.org/6.5/release-notes.html   Starting a Gradle Daemon (subsequent builds will be faster) Gradle 6.5   FAILURE: Build failed with an exception.   * Where: Settings file '/Users/runner/work/1/s/android/settings.gradle' line: 2   * What went wrong: A problem occurred evaluating settings 'nativeTemplate'. > Could not read script '/Users/runner/work/1/s/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' as it does not exist.   * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.   * Get more help at https://help.gradle.org   BUILD FAILED in 20s Error: /Users/runner/work/1/s/android/gradlew failed with return code: 1 at ChildProcess.<anonymous> (/Users/runner/work/_tasks/Gradle_8d8eebd8-2b94-4c97-85af-839254cc6da4/1.128.0/node_modules/vsts-task-lib/toolrunner.js:569:30) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:191:7) at maybeClose (internal/child_process.js:920:16) at Socket.<anonymous> (internal/child_process.js:351:11) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) at Pipe._handle.close [as _onclose] (net.js:509:12) ##[error]Error: /Users/runner/work/1/s/android/gradlew failed with return code: 1 ##[section]Finishing: Gradle Task Skipping step due to condition evaluation. Evaluating: succeeded() Result: False   Skipping step due to condition evaluation. Evaluating: succeeded() Result: False   Skipping step due to condition evaluation. Evaluating: succeeded() Result: False   Skipping step due to condition evaluation. Evaluating: succeeded() Result: False   Skipping step due to condition evaluation. Evaluating: succeeded() Result: False   Skipping step due to condition evaluation. Evaluating: succeeded() Result: False   Skipping step due to condition evaluation. Evaluating: and(succeeded(), startsWith(variables['appcenter_android_postprocess_output.mapping'], True)) Expanded: and(False, startsWith(variables['appcenter_android_postprocess_output.mapping'], True)) Result: False   ##[section]Starting: Checkout mwmaup-eservicesmobile@master to s ============================================================================== Task : Get sources Description : Get sources from a repository. Supports Git, TfsVC, and SVN repositories. Version : 1.0.0 Author : Microsoft Help : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199) ============================================================================== Cleaning any cached credential from repository: mwmaup-eservicesmobile (ExternalGit) ##[section]Finishing: Checkout mwmaup-eservicesmobile@master to s ##[section]Starting: Finalize Job Cleaning up task key Start cleaning up orphan processes. Terminate orphan process: pid (2789) (java) ##[section]Finishing: Finalize Job ##[section]Finishing: Build  
asked
1 answers
0

Looks like you're using Gradle 6.5. You need at least Gradle 7.6.

answered