expo / turtle

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

Cannot build Android APK on local machine #266

Open doubleh311 opened 3 years ago

doubleh311 commented 3 years ago

Please help to advise any way to fix or workaround for this issue. Thank you very much.

New Issue Checklist

Issue Description

I have setup to use turtle on my local machine to build apk file for Android and encounter the error that I have not found any solution yet. The build command terminated with error on saving some Icons to disk. I have looked into the repo xdl in Expo but I found it was archived and cannot find any file named AndroidIcons.ts as in the error description to view

Command executed

expo export --dev --public-url http://127.0.0.1:8000 turtle build:android --type apk --keystore-path ./stagingKey/stagingKey.jks --keystore-alias "xxxxxxbWVuZ2xpc2xxxxxxxxxx" --allow-non-https-public-url --public-url http://127.0.0.1:8000/android-index.json --release-channel staging

Complete output when running turtle, including the stack trace and command used
 
platform: "android"
  buildPhase: "reading manifest"
(node:350) UnhandledPromiseRejectionWarning: Error: Failed to save icon file to disk. (Error: Request failed with status code 404)
    at _resizeIconsAsync (/@expo/xdl@58.0.13/src/detach/AndroidIcons.ts:62:11)
    at runMicrotasks ()
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at createAndWriteIconsToPathAsync (/@expo/xdl@58.0.13/src/detach/AndroidIcons.ts:150:7)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:350) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:350) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. 
  buildPhase: "reading manifest"
Oct 5 17:41:42 turtle[377] ERROR: Error: Request failed with status code 404
    at createError (/home/ubuntuUser/.nvm/versions/node/v14.13.0/lib/node_modules/turtle-cli/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/home/ubuntuUser/.nvm/versions/node/v14.13.0/lib/node_modules/turtle-cli/node_modules/axios/lib/core/settle.js:17:12)
    at RedirectableRequest.handleResponse (/home/ubuntuUser/.nvm/versions/node/v14.13.0/lib/node_modules/turtle-cli/node_modules/axios/lib/adapters/http.js:211:9)
    at RedirectableRequest.emit (events.js:314:20)
    at RedirectableRequest.EventEmitter.emit (domain.js:486:12)
    at RedirectableRequest._processResponse (/home/ubuntuUser/.nvm/versions/node/v14.13.0/lib/node_modules/turtle-cli/node_modules/axios/node_modules/follow-redirects/index.js:269:10)
    at ClientRequest.RedirectableRequest._onNativeResponse (/home/ubuntuUser/.nvm/versions/node/v14.13.0/lib/node_modules/turtle-cli/node_modules/axios/node_modules/follow-redirects/index.js:50:10)
    at Object.onceWrapper (events.js:421:26)
    at ClientRequest.emit (events.js:314:20)
    at ClientRequest.EventEmitter.emit (domain.js:486:12)
    at HTTPParser.parserOnIncomingClient (_http_client.js:640:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:126:17)
    at Socket.socketOnData (_http_client.js:509:22)
    at Socket.emit (events.js:314:20)
    at Socket.EventEmitter.emit (domain.js:486:12)
    at addChunk (_stream_readable.js:307:12)
    at readableAddChunk (_stream_readable.js:282:9)
    at Socket.Readable.push (_stream_readable.js:221:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
  platform: "android"
Oct 5 17:41:42 turtle[377] ERROR: Failed to build standalone app
  err: Error: Request failed with status code 404
      at createError (/home/ubuntuUser/.nvm/versions/node/v14.13.0/lib/node_modules/turtle-cli/node_modules/axios/lib/core/createError.js:16:15)
      at settle (/home/ubuntuUser/.nvm/versions/node/v14.13.0/lib/node_modules/turtle-cli/node_modules/axios/lib/core/settle.js:17:12)
      at RedirectableRequest.handleResponse (/home/ubuntuUser/.nvm/versions/node/v14.13.0/lib/node_modules/turtle-cli/node_modules/axios/lib/adapters/http.js:211:9)
      at RedirectableRequest.emit (events.js:314:20)
      at RedirectableRequest.EventEmitter.emit (domain.js:486:12)
      at RedirectableRequest._processResponse (/home/ubuntuUser/.nvm/versions/node/v14.13.0/lib/node_modules/turtle-cli/node_modules/axios/node_modules/follow-redirects/index.js:269:10)
      at ClientRequest.RedirectableRequest._onNativeResponse (/home/ubuntuUser/.nvm/versions/node/v14.13.0/lib/node_modules/turtle-cli/node_modules/axios/node_modules/follow-redirects/index.js:50:10)
      at Object.onceWrapper (events.js:421:26)
      at ClientRequest.emit (events.js:314:20)
      at ClientRequest.EventEmitter.emit (domain.js:486:12)
      at HTTPParser.parserOnIncomingClient (_http_client.js:640:27)
      at HTTPParser.parserOnHeadersComplete (_http_common.js:126:17)
      at Socket.socketOnData (_http_client.js:509:22)
      at Socket.emit (events.js:314:20)
      at Socket.EventEmitter.emit (domain.js:486:12)
      at addChunk (_stream_readable.js:307:12)
      at readableAddChunk (_stream_readable.js:282:9)
      at Socket.Readable.push (_stream_readable.js:221:10)
      at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
  platform: "android"

Environment

Project: Expo SDK 38 Expo: 3.27.13 Turtle: 0.18.3 Ubuntu: 20.4 with WSL2 on Windows 10

dons20 commented 3 years ago

It's been a while but nobody has attempted to answer this. Have you found a solution/workaround?