expo / turtle

Standalone app builder service
MIT License
385 stars 29 forks source link

ERROR: Failed to build standalone app #305

Open mapstery opened 3 years ago

mapstery commented 3 years ago

New Issue Checklist

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/xdl@59.1.0/src/detach/ExponentTools.ts:111:19)
    at buildShellAppAsync (/@expo/xdl@59.1.0/src/detach/AndroidShellApp.js:1476:11)
    at Object.createAndroidShellAppAsync (/@expo/xdl@59.1.0/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/xdl@59.1.0/src/detach/ExponentTools.ts:111:19)
      at buildShellAppAsync (/@expo/xdl@59.1.0/src/detach/AndroidShellApp.js:1476:11)
      at Object.createAndroidShellAppAsync (/@expo/xdl@59.1.0/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