[英]Flutter Error. Execution failed for task ':app:processDebugMainManifest'
Hey I want to start learning flutter and I bought a course but when I try to run the auto-generated app I get the following error:嘿,我想开始学习 flutter 并购买了课程,但是当我尝试运行自动生成的应用程序时,出现以下错误:
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> com.android.manifmerger.ManifestMerger2$MergeFailureException: java.io.FileNotFoundException: E:\Flutter\untitled\build\app\intermediates\navigation_json\debug\navigation.json (The system cannot find the file specified)
* 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 1m 31s
Running Gradle task 'assembleDebug'...
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> com.android.manifmerger.ManifestMerger2$MergeFailureException: java.io.FileNotFoundException: E:\Flutter\untitled\build\app\intermediates\navigation_json\debug\navigation.json (The system cannot find the file specified)
* 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
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Exception: Gradle task assembleDebug failed with exit code 1
I saw other people talk about this here but the solution that worked for them didn't work for me.我看到其他人在这里谈论这个,但对他们有用的解决方案对我不起作用。
Here are the things I've tried: ./gralew clean or./gradlew build /flutter clean reinstalling flutter and android studio from scratch.以下是我尝试过的方法: ./gralew clean 或 ./gradlew build /flutter clean 从头开始重新安装 flutter 和 android studio。 deleting the gradle files and the build files.删除 gradle 文件和构建文件。 switching to another laptop.切换到另一台笔记本电脑。
I will be very grateful if you guys can help me.如果你们能帮助我,我将不胜感激。 Best Regards, -Roee Hovav.最好的问候,-Roee Hovav。 Peace!和平!
Open Android Studio make sure you have the latest version installed, and everything is updated then go ahead and open the Flutter project and trying building it from Android Studio Open Android Studio make sure you have the latest version installed, and everything is updated then go ahead and open the Flutter project and trying building it from Android Studio
I found the similar error but for me is missing of androidmanifest.xml and I have fixed it我发现了类似的错误,但对我来说缺少 androidmanifest.xml 并且我已经修复了它
For me I have deleted the android folder and run command "flutter create."对我来说,我删除了 android 文件夹并运行命令“flutter create”。 then I got another of errors about "SdkMinVersion" and "Flutter multidex handling is disabled."然后我收到另一个关于“SdkminVersion”和“Flutter multidex 处理被禁用”的错误。 and fixed it step by step并逐步修复
Anyway I have found this solution after I have fixed and hope it will help you --> changing gradle version as the link below https://github.com/tekartik/sqflite/issues/380无论如何,我在修复后找到了这个解决方案,希望它对您有所帮助->将 gradle 版本更改为 https 下方的链接://github.com/tekartik/sqflite/issues/380
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.