Error in running turtle build:android with --public-url
See original GitHub issueQuestion Checklist
- I read the Contribution Guidelines.
- I read docs.expo.io (Managed Workflow > Distributing Your App).
- I searched for existing GitHub issues.
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:
- Created 4 years ago
- Comments:13 (7 by maintainers)
Top 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 >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
Oh, I think I see what’s the problem. The first command should be changed:
expo export --public-url https://127.0.0.1/dist
(note the/dist
path!)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
Can confirm the above works for me and the build for android was successful. Closing this issue.