Skip to content

[bug] 无法连接到 tauri.localhost #6454

@ptechen

Description

@ptechen

Describe the bug

After Android apk package is built and installed, the web page that displays: https://tauri.localhost/ cannot be loaded because: net::ERR_CONNECTION_REFUSED

Reproduction

No response

Expected behavior

No response

Platform and versions

Environment
  › OS: Mac OS 13.2.1 X64
  › Node.js: 19.6.0
  › npm: 9.4.0
  › pnpm: Not installed!
  › yarn: 1.22.19
  › rustup: 1.25.2
  › rustc: 1.70.0-nightly
  › cargo: 1.70.0-nightly
  › Rust toolchain: nightly-aarch64-apple-darwin 

Packages
WARNING: no lock files found, defaulting to npm
  › @tauri-apps/cli [NPM]: 2.0.0-alpha.2
  › @tauri-apps/api [NPM]: Not installed!
  › tauri [RUST]: 2.0.0-alpha.3,
  › tauri-build [RUST]: 2.0.0-alpha.1,
  › tao [RUST]: 0.17.0,
  › wry [RUST]: 0.26.0,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../dist
  › devPath: http://0.0.0.0:1420/
package.json not found

App directory structure
  ├─ css
  ├─ dist
  ├─ target
  ├─ components
  ├─ public
  ├─ src-tauri
  ├─ .vscode
  ├─ views
  ├─ .idea
  └─ src

Stack trace

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions