Trying to build for android... getting errors and I'm lost... and i'm tired. Any help is appreciated.
cargo tauri android build
Info detected host target triple "x86_64-pc-windows-msvc"
Running beforeBuildCommand `cd src && npm run build`
> [email protected] build
> vite build
vite v5.1.6 building SSR bundle for production...
transforming (1) .svelte-kit\generated\server\internal.js
src\routes\+page.svelte
`export const prerender` will be ignored — move it to +page(.server).js/ts instead. See https://kit.svelte.dev/docs/page-options for more information.
✓ built in 6.82s
Using @sveltejs/adapter-static
@sveltejs/adapter-static: all routes must be fully prerenderable, but found the following routes that are dynamic:
- src\routes/
You have the following options:
- set the `fallback` option — see https://kit.svelte.dev/docs/single-page-apps#usage for more info.
- add `export const prerender = true` to your root `+layout.js/.ts` or `+layout.server.js/.ts` file. This will try to prerender all pages.
- add `export const prerender = true` to any `+server.js/ts` files that are not fetched by page `load` functions.
- pass `strict: false` to `adapter-static` to ignore this error. Only do this if you are sure you don't need the routes in question in your final app, as they will be unavailable. See https://github.com/sveltejs/kit/tree/main/packages/adapter-static#strict for more info.
If this doesn't help, you may need to use a different adapter. @sveltejs/adapter-static can only be used for sites that don't need a server for dynamic rendering, and can run on just a static file server.npm run build` failed with exit code 1