Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

ERROR: Failed to build standalone app #305

Open
5 tasks done
mapstery opened this issue Mar 31, 2021 · 0 comments
Open
5 tasks done

ERROR: Failed to build standalone app #305

mapstery opened this issue Mar 31, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@mapstery
Copy link

New Issue Checklist

  • Updated turtle-cli to the latest version (yarn global add turtle-cli or npm install --global turtle-cli).
  • I read the Contribution Guidelines.
  • I read docs.expo.io (Managed Workflow > Distributing Your App).
  • I searched for existing GitHub issues.
  • I enclosed the complete output when running turtle, including the stack trace and command used.

Issue Description

Hi,
I am trying to make a local android build, and I found problem very similar at issue #218, but unfortunately the solution provided does not help in my situation.
The build in cloud worked.

Could you please help me addressing the issue ?

Thank you

Command executed

EXPO_ANDROID_KEYSTORE_PASSWORD="xxxxxxxxxxxxxxxxxx" EXPO_ANDROID_KEY_PASSWORD="xxxxxxxxxxxxxxxxxx" turtle build:android --type apk --keystore-path /root/keys/keystore.jks --keystore-alias "keyalias" --allow-non-https-public-url --public-url http://127.0.0.1:8000/android-index.json

Complete output when running turtle, including the stack trace and command used

You can find the complete output at this URL https://gist.github.com/mapstery/5a59b9bb4887b0dcc0b00d5534b613ec
starting from line 364. From lines 1 to 347 I put all the instructions and commands for the setup environment

Mar 31 08:15:49 turtle[4742] ERROR: Error: ./gradlew exited with non-zero code: 1
    at ChildProcess.completionListener (/usr/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
    at Object.onceWrapper (events.js:422:26)
    at ChildProcess.emit (events.js:315:20)
    at ChildProcess.EventEmitter.emit (domain.js:467:12)
    at maybeClose (internal/child_process.js:1048:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
    ...
    at spawnAsync (/usr/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
    at spawnAsyncThrowError (/@expo/[email protected]/src/detach/ExponentTools.ts:111:19)
    at buildShellAppAsync (/@expo/[email protected]/src/detach/AndroidShellApp.js:1476:11)
    at Object.createAndroidShellAppAsync (/@expo/[email protected]/src/detach/AndroidShellApp.js:380:5)
    at runShellAppBuilder (/usr/lib/node_modules/turtle-cli/src/builders/android.ts:91:5)
    at buildAndroid (/usr/lib/node_modules/turtle-cli/src/builders/android.ts:23:26)
    at /usr/lib/node_modules/turtle-cli/src/bin/utils/builder.ts:87:7
    at Command. (/usr/lib/node_modules/turtle-cli/src/bin/index.ts:23:12)
  platform: "android"
Mar 31 08:15:49 turtle[4742] ERROR: Failed to build standalone app
  err: Error: ./gradlew exited with non-zero code: 1
      at ChildProcess.completionListener (/usr/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
      at Object.onceWrapper (events.js:422:26)
      at ChildProcess.emit (events.js:315:20)
      at ChildProcess.EventEmitter.emit (domain.js:467:12)
      at maybeClose (internal/child_process.js:1048:16)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
      ...
      at spawnAsync (/usr/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
      at spawnAsyncThrowError (/@expo/[email protected]/src/detach/ExponentTools.ts:111:19)
      at buildShellAppAsync (/@expo/[email protected]/src/detach/AndroidShellApp.js:1476:11)
      at Object.createAndroidShellAppAsync (/@expo/[email protected]/src/detach/AndroidShellApp.js:380:5)
      at runShellAppBuilder (/usr/lib/node_modules/turtle-cli/src/builders/android.ts:91:5)
      at buildAndroid (/usr/lib/node_modules/turtle-cli/src/builders/android.ts:23:26)
      at /usr/lib/node_modules/turtle-cli/src/bin/utils/builder.ts:87:7
      at Command. (/usr/lib/node_modules/turtle-cli/src/bin/index.ts:23:12)
  platform: "android"

Environment

  Expo CLI 4.3.2 environment info:
    System:
      OS: Linux 4.19 Debian GNU/Linux 10 (buster) 10 (buster)
      Shell: 5.0.3 - /bin/bash
    Binaries:
      Node: 14.16.0 - /usr/bin/node
      npm: 6.14.11 - /usr/bin/npm
    npmPackages:
      expo: ~40.0.0 => 40.0.1
      react: 16.13.1 => 16.13.1
      react-dom: 16.13.1 => 16.13.1
      react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2
      react-native-web: ~0.13.12 => 0.13.18
    npmGlobalPackages:
      expo-cli: 4.3.2
    Expo Workflow: bare
@mapstery mapstery added the bug Something isn't working label Mar 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant