简体   繁体   中英

Flutter Error : Build failed with an exception

At first when I installed and ran the Android Studio the app ran perfectly, then after two days for some reason this is happening. Please help me fix this. Thanks

 Launching lib\main.dart on GM1910 in debug mode...
    Running Gradle task 'assembleDebug'...
    Not resetting hidden file - C:\Users\zahin\AndroidStudioProjects\project1\build\app\intermediates\flutter\debug\flutter_assets\assets\ss\Thumbs.db

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:signingConfigWriterDebug'.
> java.nio.file.AccessDeniedException: C:\Users\zahin\AndroidStudioProjects\project1\build\app\intermediates\signing_config\debug\out\signing-config.json

* 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

BUILD FAILED in 4s
Exception: Gradle task assembleDebug failed with exit code 1

使用flutter clean或删除项目根目录上的 build 文件夹,然后重试。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM