question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to build android app on turtle 0.8.2

See original GitHub issue

Hi again, My first issue (#86) is fixed by version 0.8.2 but I’m getting an error on @expo/spawn-async. here is the log:

Jun 12 14:52:25 turtle[1085] ERROR: Error: ./gradlew exited with non-zero code: 1
    at ChildProcess.completionListener (/Users/mojtaba/.nvm/versions/node/v10.15.0/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
    at Object.onceWrapper (events.js:273:13)
    at ChildProcess.emit (events.js:182:13)
    at ChildProcess.EventEmitter.emit (domain.js:441:20)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
    ...
    at spawnAsync (/Users/mojtaba/.nvm/versions/node/v10.15.0/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
    at /@expo/xdl@54.1.4/src/detach/ExponentTools.js:127:21
    at Generator.next (<anonymous>)
    at step (/Users/mojtaba/.nvm/versions/node/v10.15.0/lib/node_modules/turtle-cli/node_modules/@expo/xdl/build/detach/ExponentTools.js:261:191)
    at /Users/mojtaba/.nvm/versions/node/v10.15.0/lib/node_modules/turtle-cli/node_modules/@expo/xdl/build/detach/ExponentTools.js:261:437
    at new Promise (<anonymous>)
    at /Users/mojtaba/.nvm/versions/node/v10.15.0/lib/node_modules/turtle-cli/node_modules/@expo/xdl/build/detach/ExponentTools.js:261:99
    at spawnAsyncThrowError (/Users/mojtaba/.nvm/versions/node/v10.15.0/lib/node_modules/turtle-cli/node_modules/@expo/xdl/build/detach/ExponentTools.js:89:18)
    at /@expo/xdl@54.1.4/src/detach/AndroidShellApp.js:1125:11
    at Generator.next (<anonymous>)
    at step (/Users/mojtaba/.nvm/versions/node/v10.15.0/lib/node_modules/turtle-cli/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:656:191)
    at /Users/mojtaba/.nvm/versions/node/v10.15.0/lib/node_modules/turtle-cli/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:656:361
  platform: "android"
Jun 12 14:52:25 turtle[1085] ERROR: Failed to build standalone app
  err: Error: ./gradlew exited with non-zero code: 1
      at ChildProcess.completionListener (/Users/mojtaba/.nvm/versions/node/v10.15.0/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
      at Object.onceWrapper (events.js:273:13)
      at ChildProcess.emit (events.js:182:13)
      at ChildProcess.EventEmitter.emit (domain.js:441:20)
      at maybeClose (internal/child_process.js:962:16)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
      ...
      at spawnAsync (/Users/mojtaba/.nvm/versions/node/v10.15.0/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
      at /@expo/xdl@54.1.4/src/detach/ExponentTools.js:127:21
      at Generator.next (<anonymous>)
      at step (/Users/mojtaba/.nvm/versions/node/v10.15.0/lib/node_modules/turtle-cli/node_modules/@expo/xdl/build/detach/ExponentTools.js:261:191)
      at /Users/mojtaba/.nvm/versions/node/v10.15.0/lib/node_modules/turtle-cli/node_modules/@expo/xdl/build/detach/ExponentTools.js:261:437
      at new Promise (<anonymous>)
      at /Users/mojtaba/.nvm/versions/node/v10.15.0/lib/node_modules/turtle-cli/node_modules/@expo/xdl/build/detach/ExponentTools.js:261:99
      at spawnAsyncThrowError (/Users/mojtaba/.nvm/versions/node/v10.15.0/lib/node_modules/turtle-cli/node_modules/@expo/xdl/build/detach/ExponentTools.js:89:18)
      at /@expo/xdl@54.1.4/src/detach/AndroidShellApp.js:1125:11
      at Generator.next (<anonymous>)
      at step (/Users/mojtaba/.nvm/versions/node/v10.15.0/lib/node_modules/turtle-cli/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:656:191)
      at /Users/mojtaba/.nvm/versions/node/v10.15.0/lib/node_modules/turtle-cli/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:656:361
  platform: "android"

I’m using nvm and node v10.15. I tried multiple times and getting the same error each time.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
dsokalcommented, Jun 12, 2019

Please check out the output of turtle build:android --help. In 0.8.0 we changed the default build type to app-bundle. So if you wish to build an apk, you should specify it explicitly (turtle build:android ... --type apk).

8reactions
hanspoocommented, Feb 7, 2020

In my case it worked when i’ve removed the gradle cache and killed the gradle daemon:

ps -fea |grep gradle | awk ‘{print $2}’ | xargs kill rm -rf ~/.gradle/

Read more comments on GitHub >

github_iconTop Results From Across the Web

expo sdk 41 - unable to build standalone apk/aab
There are two major reasons for this cause. Setting enableDangerousExperimentalLeanBuils to true . Missing expo-splash-screen package.
Read more >
Android build gives error - Expo Development Tools - Forums
Hi! I want to publish an update for my app. But when I run “expo build:android” the build tool on Expo gives an...
Read more >
Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or ...
Read more >
Install and configure the NDK and CMake - Android Developers
To compile and debug native code for your app, you need the following components: The Android Native Development Kit (NDK): a set of...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
... Bug:131367 - "GNAP fails to build extensions if no useflags declared" ... app-office/wxbanker (version 0.8.2)" status:RESOLVED resolution:OBSOLETE ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found