I tried “flet build apk” command using cmd (using administrative and non administrative). But here the result when I try it. If anyone can help me to fix that issue it will be so much thankful.
Unhandled exception:
PathAccessException: Deletion failed, path = 'C:UsersUserAppDataLocalTemphostpython3.11_475fccd2' (OS Error: The process cannot access the file because it is being used by another process. , errno = 32)
#0 _checkForErrorResponse (dart:io/common.dart:55:9)
#1 _Directory._delete.<anonymous closure> (dart:io/directory_impl.dart:180:7)
<asynchronous suspension>
#2 PackageCommand.run
(file:///C:/Users/User/AppData/Local/Pub/Cache/hosted/pub.dev/serious_python-.7.0/bin/package_command.dart:363:9)
<asynchronous suspension>
#3 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#4 main (file:///C:/Users/User/AppData/Local/Pub/Cache/hosted/pub.dev/serious_python- .7.0/bin/main.dart:10:3)
<asynchronous suspension>
Error building Flet app - see the log of failed command above.