Repository: tauri
Issue: [bug] Error Permission denied (os error 13)
Labels: type: bug,status: needs triage

### Describe the bug

I've just upgraded my tauri project to 2.0 alpha version and encountered he issue "Error Permission denied (os error 13)".
I have a gitlab pipeline job  to create Android apk and aab production bundles  on a host using gitlab-runner account.  I sometime encounter above issue.

the situation is that I have a development environment setup on the same host with gitlab runner using another account different than gitlab-runner account to build a testing application. it seems like there is  conflict between the two build 
I know that I can setup different hosts for different purpose to solve the problem. 
but I would like to report the issue to tauri team that the error message is too general to have less useful infor for troubleshooting and not easy to turn on verbose log and even on same host the build process should not have conflict between each other.

### Reproduction

execute `npm run tauri android build ` on same host with different accounts and source code on different locations, the issue will be reproduced.

### Expected behavior

_No response_

### Full `tauri info` output

```text
$npm run tauri -- info

> demo-web@1.0.0 tauri
> tauri info


[✘] Environment
    - OS: Fedora 39.0.0 X64
    ✘ webkit2gtk-4.1: not installed
      Visit https://tauri.app/v1/guides/getting-started/prerequisites to learn more about tauri prerequisites
    ✔ rsvg2: 2.57.1
    ✔ rustc: 1.74.1 (a28077b28 2023-12-04)
    ✔ cargo: 1.74.1 (ecb9851af 2023-10-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 18.13.0
    - npm: 8.19.3

[-] Packages
    - tauri [RUST]: 2.0.0-alpha.20
    - tauri-build [RUST]: 2.0.0-alpha.13
    - wry [RUST]: 0.35.1
    - tao [RUST]: 0.24.0
    - tauri-cli [RUST]: 2.0.0-alpha.20
    - @tauri-apps/api [NPM]: 2.0.0-alpha.13
    - @tauri-apps/cli [NPM]: 2.0.0-alpha.20

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist/demo-web/browser
    - devPath: http://localhost:1420/
    - framework: Angular
    - bundler: Webpack
```


### Stack trace

```text
> demo-web@1.0.0 tauri
> tauri android build
        Info detected host target triple "x86_64-unknown-linux-gnu"
   Compiling wry v0.35.1
   Compiling tauri v2.0.0-alpha.20
   Compiling demo v0.1.0 (/home/gitlab-runner/builds/r8CosUX2/0/root/demo/src-tauri)
   Compiling tauri-runtime-wry v1.0.0-alpha.8
   Compiling tauri-plugin-shell v2.0.0-alpha.6
    Finished release [optimized] target(s) in 10.34s
        Info symlinking lib "/home/gitlab-runner/builds/r8CosUX2/0/root/demo/src-tauri/target/aarch64-linux-android/release/libdemo_lib.so" in jniLibs dir "/home/gitlab-runner/builds/r8CosUX2/0/root/demo/src-tauri/gen/android/app/src/main/jniLibs/arm64-v8a"
        Info "/home/gitlab-runner/builds/r8CosUX2/0/root/demo/src-tauri/target/aarch64-linux-android/release/libdemo_lib.so" requires shared lib "libandroid.so"
        Info "/home/gitlab-runner/builds/r8CosUX2/0/root/demo/src-tauri/target/aarch64-linux-android/release/libdemo_lib.so" requires shared lib "libdl.so"
        Info "/home/gitlab-runner/builds/r8CosUX2/0/root/demo/src-tauri/target/aarch64-linux-android/release/libdemo_lib.so" requires shared lib "liblog.so"
        Info "/home/gitlab-runner/builds/r8CosUX2/0/root/demo/src-tauri/target/aarch64-linux-android/release/libdemo_lib.so" requires shared lib "libm.so"
        Info "/home/gitlab-runner/builds/r8CosUX2/0/root/demo/src-tauri/target/aarch64-linux-android/release/libdemo_lib.so" requires shared lib "libc.so"
     Running beforeBuildCommand `npm run buildAppProd`
> demo-web@1.0.0 buildAppProd
> ng build --configuration=production && ng run demo-web:server
- Generating browser application bundles (phase: setup)...
✔ Browser application bundle generation complete.
✔ Browser application bundle generation complete.
- Copying assets...
✔ Copying assets complete.
- Generating index html...
✔ Index html generation complete.
- Generating service worker...
✔ Service worker generation complete.
Initial Chunk Files           | Names                                           |  Raw Size | Estimated Transfer Size
...............
scripts.397a02bd9bbfe228.js   | scripts                                         |  57.58 kB |                17.03 kB
runtime.7bfc9285c43489cd.js   | runtime                                         |   3.61 kB |                 1.72 kB
| Initial Total                                   |   2.70 MB |               493.53 kB
Lazy Chunk Files              | Names                                           |  Raw Size | Estimated Transfer Size
.........
common.3755be567cef1fd4.js    | common                                          | 732 bytes |               417 bytes
Build at: 2023-12-29T06:37:42.058Z - Hash: 698a96766aee4df9 - Time: 45130ms
Warning: bundle initial exceeded maximum budget. Budget 1.00 MB was not met by 1.70 MB with a total of 2.70 MB.
- Generating server application bundles (phase: setup)...
✔ Server application bundle generation complete.
✔ Server application bundle generation complete.
Initial Chunk Files | Names                                           |  Raw Size
main.js             | main                                            |   7.73 MB |
| Initial Total                                   |   7.73 MB
Lazy Chunk Files    | Names                                           |  Raw Size
73.js               | pages-wordbook-word-book-routes                 |   1.46 MB |
.........
Build at: 2023-12-29T06:38:12.605Z - Hash: 325e9fdefba46ea2 - Time: 29246ms
       Error Permission denied (os error 13)
ERROR: Job failed: exit status 1
```


### Additional context

current PATH variable
/home/gitlab-runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/bin/nodejs/bin:/home/gitlab-runner/.cargo/bin:/usr/local/android-studio/bin:/home/gitlab-runner/Android/Sdk/tools:/home/gitlab-runner/Android/Sdk/tools/bin:/home/gitlab-runner/Android/Sdk/platform-tools

ANDROID_HOME=/home/gitlab-runner/Android/Sdk
NDK_HOME=/home/gitlab-runner/Android/Sdk/ndk/26.1.10909125

_No response_