Build (React native) Android apps and generate .apk file by using turtle cli from azure devops pipeline

chiranjeevi pathipati 1 Reputation point
2022-11-10T07:22:18.5+00:00

Hi Team,

I am trying to build Android app by using turtle cli for this i am using below script.
![258988-image.png][1]

npm install -g turtle-cli
EXPO_ANDROID_KEYSTORE_PASSWORD="androidcore" EXPO_ANDROID_KEY_PASSWORD="androidcore" turtle build:android --type apk --keystore-path $(Agent.TempDirectory)/android.keystore --keystore-alias "android" -u $(EXPO_USERNAME) -p $(EXPO_PASSWORD)

turtle cli has installed and build also started but failing at building section, i am getting below error.

I am stuck guys, Could you please guide me where i am doing mistake.

error:
Nov 9 13:06:46 turtle[19222] ERROR: Failed to build standalone app
err: Error: ./gradlew exited with non-zero code: 1
at ChildProcess.completionListener (/Users/runner/hostedtoolcache/node/14.19.3/x64/lib/node_modules/turtle-cli/node_modules/@expo/xdl/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
at Object.onceWrapper (events.js:520:26)
at ChildProcess.emit (events.js:400:28)
at ChildProcess.emit (domain.js:475:12)
at maybeClose (internal/child_process.js:1088:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5)
...
at spawnAsync (/Users/runner/hostedtoolcache/node/14.19.3/x64/lib/node_modules/turtle-cli/node_modules/@expo/xdl/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
at spawnAsyncThrowError (/@expo/xdl@59.2.1/src/detach/ExponentTools.ts:111:19)
at buildShellAppAsync (/@expo/xdl@59.2.1/src/detach/AndroidShellApp.js:1494:11)
at Object.createAndroidShellAppAsync (/@expo/xdl@59.2.1/src/detach/AndroidShellApp.js:382:5)
at runShellAppBuilder (/Users/runner/hostedtoolcache/node/14.19.3/x64/lib/node_modules/turtle-cli/src/builders/android.ts:99:5)
at buildAndroid (/Users/runner/hostedtoolcache/node/14.19.3/x64/lib/node_modules/turtle-cli/src/builders/android.ts:31:26)
at /Users/runner/hostedtoolcache/node/14.19.3/x64/lib/node_modules/turtle-cli/src/bin/utils/builder.ts:87:7
at Command.<anonymous> (/Users/runner/hostedtoolcache/node/14.19.3/x64/lib/node_modules/turtle-cli/src/bin/index.ts:23:12)
platform: "android"

Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
2,041 questions
{count} votes