PS C:\Users\subas\flutter_projects\StablePayMobile...
# kotlin-dsl
a
PS C:\Users\subas\flutter_projects\StablePayMobile\near_pay_app> flutter run --debug Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... Building with Flutter multidex support enabled. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task 'apppackageDebug'.
java.io.IOException: Unable to delete directory 'C:\Users\subas\flutter_projects\StablePayMobile\near_pay_app\build\app\outputs\apk\debug'
Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory. - C:\Users\subas\flutter_projects\StablePayMobile\near_pay_app\build\app\outputs\apk\debug\app-debug.apk * Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
* Get more help at https://help.gradle.org BU�LD FAILED in 4s Running Gradle task 'assembleDebug'... 5,0s Error: Gradle task assembleDebug failed with exit code 1 ""how can I fix this""
v
Find out what has a lock on that file and kill it, or reboot, or switch to a sane operating system. :-) This is only marginally a Gradle question actually. You build it trying to delete a directory not cannot add something is locking that APK file.