-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when building Android release with flutter_vector_graphics_compiler
on Windows
#2180
Comments
This seems like a windows error. Probably caused by one of two things:
That said, I could be completely wrong. I have not yet tried your repro steps but am happy to. I'd probably start by trying to remove the .dart_tool directory and rebuild and see if it fixes it. |
I dont know. i tried to remove everything. i also reinstalled dart, flutter & shorebird, disabled windows defender, rebooted, nothing changed. I also have the I'm afraid that there is something in the shorebird cli that does not handle correctly files and folder in windows under some circustances. |
maybe there is something between shorebird cli and dart.exe that are locking out each other? |
I suspect next steps here would be for one of us to try adding shorebird to https://github.com/dnfield/vector_graphics/tree/main/packages/vector_graphics/example and see if there is any failure? My guess is that there isn't anything shorebird-specific going on here, just a windows permissions issues caused by having run a command with administrator and that command having left around some cache files created by an administrator which then cannot be deleted/modified by a non-administrator account. |
ok, i made some other tests. it is definitely something with vector_graphics, not shorebird. The solution is... just retry until it works :)
i just need to be resilient and retry until it works. All of this happens only when compiling for Android, when creating an ipa for IOS i have never encountered this problem. So, in the end is clear that this is not a shorebird problem. it happens mostly when using the shorebird cli though, i dont know why. Compiling with just flutter also sometime fails but tipycally i need just to remove .dart_tools and retry just 1 time. but i suppose we can close this here, it does not belong to shorebird, sorry! |
Thanks. I'm going to leave this open for now. Unfortunately the maintainer for vector_graphics is no longer around (I don't know what, if any, plans there are for maintenance going forward). |
I had the same issue (windows environment, building Android), and this worked for me: icacls "C:\Users\me\projectDir" /reset /t /c /l EDIT: I was only able to build it one time. Ugh. |
FYI, I started a new issue here: |
Description
When attempting to build an Android release on Windows with the
flutter_vector_graphics_compiler
package in my app,i get anAccess Denied
error during the SVG compilation process. Sometimes the error is slightly different, indicatingFile not found
I already checked files and folder permissions. I even modified the standard temp folder, assigned full controll for everyone and tried to run shorebird as administrator.
Error details
Observations
During the build process, a temporary directory (e.g.,
flutter_tools.c65cea74
) is created in theTemp
folder where the SVG files are stored for compilation. However, it seems to me that this directory is deleted before the SVG compiler starts, crashing everything. Maybe it's not true i don't have a precise test, just my observation.Steps to Reproduce
flutter_vector_graphics_compiler
package to the project.Environment
The text was updated successfully, but these errors were encountered: