0

I am getting this error on flutter clean cammand.

Failed to remove D:\Projects\FlutterProject\.dart_tool. A program may still be using a file in the directory or the directory itself. To find and stop such a 
program, see: https://superuser.com/questions/1333118/cant-delete-empty-folder-because-it-is-used
Deleting .dart_tool...

I reinstalled flutter removed every cashed memory, still getting same error.

Console: flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.38.3, on Microsoft Windows [Version 10.0.26200.7171], locale en-US)
[√] Windows Version (11 Home 64-bit, 25H2, 2009)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.12.3)
[√] Connected device (3 available)
[√] Network resources

1 Answer 1

0

Close all IDEs and run the following commands in PowerShell or CMD:

taskkill /F /IM dart.exe

taskkill /F /IM flutter.exe

taskkill /F /IM java.exe

taskkill /F /IM code.exe

New contributor
Ayan Hamdan is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.