#Project directory does not exist whereas it exist

75 messages · Page 1 of 1 (latest)

amber tundra
#

Hi, I get

Error Project directory /home/runner/work/Myapp/Myapp/src-tauri/gen/android/app/src/main/java/com/Myapp/*** does not exist. Did you update the package name in `Cargo.toml` or the bundle identifier in `tauri.conf.json > identifier`? Save your changes, delete the `gen/android` folder and run `tauri android init` to recreate the Android project.

only on github action
From my local env dev all is fine. I miss something ?

leaden hedge
#

did you commit the gen/android folder?

amber tundra
#

Yes

#

I use tauri cli to build my app, not yarn / pnpm / npm

#

(idk if relevant)

leaden hedge
#

are you sure you’re running the same cli version both locally and in CI?

#

maybe in CI you’re running latest while locally you’re not

amber tundra
#

Yes, it's the same version.
I do yarn update before running init command. From my env dev I use yarn to run cli

#

I use rc.6 from my local env dev

#

With yarn it work on ci

amber tundra
#

Finally successfully fix my issue

#

(FYI I use a fork of Jonas action)

#

But get
Error: Failed to assemble APK: Permission denied (os error 13): Permission denied (os error 13)

amber tundra
#

I have to run tauri android init each time during ci ?

amber tundra
amber tundra
#

Maybe do you have an idea @leaden hedge ?

leaden hedge
#

is your repo still open source?

amber tundra
amber tundra
#

Can I enable some debug log from cargo mobile through cli ?

#

Debug are only for cargo

#

I've no more idea 😦

amber tundra
amber tundra
#

Do you have some time to take a look @leaden hedge ?

leaden hedge
#

i'll take a look

leaden hedge
#

you might also be able to do git update-index --chmod=+x src-tauri/gen/android/gradlew instead of all this, but i didn't test

leaden hedge
#

will do that tomorrow

amber tundra
#

Awesome thanks

leaden hedge
amber tundra
#

So I have to wait the next cli release ?

leaden hedge
amber tundra
#

I am trying the new release

#

Right now

#

!!

leaden hedge
#

ping me if you see something weird

amber tundra
amber tundra
#

FYI, I deleted gen folder re run android init command but I get no modified files

amber tundra
#

Project directory does not exist whereas it exist

leaden hedge
#

i’ll take a look in a bit

leaden hedge
amber tundra
#

next is the right branch ?

#

latest point on 1.6.1

#

Which is the latest

#

@leaden hedge

amber tundra
#

Maybe a workaround is to use wsl to run tauri android init ?

leaden hedge
#

hmm you’re indeed on latest then

leaden hedge
#

i need to think of another way to solve this

leaden hedge
#

gonna double check locally, last time i tested it actually worked

leaden hedge
#

i would avoid using that tauri-build action for this tbh

#

adds too much complexity, it's another CLI dependency etc, too many room for mistake

amber tundra
#

The goal to use this action is to simplify tauri build command .
I will ask Jonas what is the future of this

amber tundra
#

Re, I noticed something else.
In android dev mode, everything work as expected, I can see the app ui.
When building with ci I try to install it from a real device, but interface is really bad. No background img, no color and layout

#

I don't inderstand why

#

@leaden hedge

#

It seems it come from css. Css is not apply

leaden hedge
#

try a debug build to be able to see the console and see if there’s any errors

#

i’m wrapping up other work now, i can take a look at your app later

#

alternatively you can try the release mode app locally with “tauri build —open” and run in android studio

amber tundra
#

Ah yes I get same issue with a debug build

#

No issue from console

leaden hedge
#

hmm

#

the console from chrome://inspect right?

amber tundra
#

I didn't know that 😱

#

You save my life 😅

#

FYI tomorrow I will try to run android command from a Unix os

leaden hedge