[英]Execution failed for task ':app:generateDebugBuildConfig' Flutter
[英]ERROR When Running Flutter App in Android Studio: Execution failed for task ':app:generateDebugBuildConfig'
我是移動應用程序開發的新手,但我想構建一個非常簡單的應用程序。 我在網上搜索,發現 Flutter 是最吸引人的選擇。 我找到了一些視頻,向您展示如何使用 Android Studio 設置 Flutter。 我跟着視頻,一切都很好,直到我在模擬器上運行 Flutter 模板時遇到問題。 我收到了這個錯誤:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:generateDebugBuildConfig'.
> java.nio.file.AccessDeniedException: C:\Users\ivomu\Desktop\New folder\PROGRAMIRANJE\Flutter Apps\WeightAppp\build\app\generated\source\buildConfig\debug\com\example\WeightAppp
* 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 3s
Exception: Gradle task assembleDebug failed with exit code 1
我在網上查了一下,沒有其他人有這樣的問題。 我該如何解決?
java.nio.file.AccessDeniedException
Flutter 可能沒有訪問特定文件的權限。
如果您使用的是命令提示符,請嘗試以管理員權限運行它。 如果您使用的是 Android Studio,請嘗試以管理員身份打開 Android Studio。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.