Failed to build android app on turtle 0.8.2
See original GitHub issueHi 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:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please check out the output of
turtle build:android --help
. In0.8.0
we changed the default build type toapp-bundle
. So if you wish to build an apk, you should specify it explicitly (turtle build:android ... --type apk
).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/