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.

Error in running turtle build:android with --public-url

See original GitHub issue

Question Checklist

Question Subject

turtle build:android   --keystore-path $KEYSTORE_PATH   --keystore-alias $KEYSTORE_ALIAS   --public-url https://0.0.0.0:4443/dist/android-index.json

Question Description

I was following this link to make android build with a local server but this is producing error. The local server is a simple python3 https server with self-signed certificate(I used the one here) and I’ve turned export NODE_TLS_REJECT_UNAUTHORIZED=0 for it to work.

I’ve pasted the error below and I wish there’s a verbose option to get more output or if you could help diagnose why this happens:

Dec 15 10:05:55 turtle[50630] ERROR: Error: ./gradlew exited with non-zero code: 1
    at ChildProcess.completionListener (/Users/judewang/.nvm/versions/node/v10.16.3/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
    at Object.onceWrapper (events.js:286:20)
    at ChildProcess.emit (events.js:198:13)
    at ChildProcess.EventEmitter.emit (domain.js:448:20)
    at maybeClose (internal/child_process.js:982:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
    ...
    at spawnAsync (/Users/judewang/.nvm/versions/node/v10.16.3/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
    at spawnAsyncThrowError (/@expo/xdl@56.5.0/src/detach/ExponentTools.ts:131:19)
    at buildShellAppAsync (/@expo/xdl@56.5.0/src/detach/AndroidShellApp.js:1191:11)
  platform: "android"
Dec 15 10:05:55 turtle[50630] ERROR: Failed to build standalone app
  err: Error: ./gradlew exited with non-zero code: 1
      at ChildProcess.completionListener (/Users/judewang/.nvm/versions/node/v10.16.3/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
      at Object.onceWrapper (events.js:286:20)
      at ChildProcess.emit (events.js:198:13)
      at ChildProcess.EventEmitter.emit (domain.js:448:20)
      at maybeClose (internal/child_process.js:982:16)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
      ...
      at spawnAsync (/Users/judewang/.nvm/versions/node/v10.16.3/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
      at spawnAsyncThrowError (/@expo/xdl@56.5.0/src/detach/ExponentTools.ts:131:19)
      at buildShellAppAsync (/@expo/xdl@56.5.0/src/detach/AndroidShellApp.js:1191:11)
  platform: "android"

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
dsokalcommented, Dec 17, 2019

Oh, I think I see what’s the problem. The first command should be changed:

  1. expo export --public-url https://127.0.0.1/dist (note the /dist path!)
  2. turtle build:android --keystore-path $KEYSTORE_PATH --keystore-alias $KEYSTORE_ALIAS --public-url https://127.0.0.1/dist/android-index.json -t apk | tee logs.txt
0reactions
guanwcommented, Dec 17, 2019

Can confirm the above works for me and the build for android was successful. Closing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Turtle build:android running into error (expo 37) - Stack Overflow
I'm an expo/turtle noob. my build is failing with the following. Oct 20 10:49:22 turtle[34364] ERROR: TypeError: Cannot read property ...
Read more >
gradlew exited with non-zero code: 1 - You.com
Go to Gradle intallation guide on their website and run the command listed below ... expo/turtleError in running turtle build:android with --public-url#169.
Read more >
Turtle cli, Error: unable to verify the first certificate - Expo Forums
I'm trying to generate an APK locally with the turtle using an article, the problem is that I ... turtle-cli build:android --public-url ......
Read more >
Build your standalone Expo App locally with Turtle CLI
turtle build:android \ --type apk \ --keystore-path KEYSTORE_PATH \ --keystore-alias "KEY_ALIAS" \ --allow-non-https-public-url \
Read more >
Build Standalone Expo .apk and .ipa with Turtle CLI
This tuorial assumes you will run a local server at http://127.0.0.1:8000. You can now export the app: $ expo export --dev --public-url ......
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