簡體   English   中英

Flutter 錯誤。 任務“:app:processDebugMainManifest”執行失敗

[英]Flutter Error. Execution failed for task ':app:processDebugMainManifest'

嘿,我想開始學習 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 

我看到其他人在這里談論這個,但對他們有用的解決方案對我不起作用。

以下是我嘗試過的方法: ./gralew clean 或 ./gradlew build /flutter clean 從頭開始重新安裝 flutter 和 android studio。 刪除 gradle 文件和構建文件。 切換到另一台筆記本電腦。

如果你們能幫助我,我將不勝感激。 最好的問候,-Roee Hovav。 和平!

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

我發現了類似的錯誤,但對我來說缺少 androidmanifest.xml 並且我已經修復了它

對我來說,我刪除了 android 文件夾並運行命令“flutter create”。 然后我收到另一個關於“SdkminVersion”“Flutter multidex 處理被禁用”的錯誤。 並逐步修復

無論如何,我在修復后找到了這個解決方案,希望它對您有所幫助->將 gradle 版本更改為 https 下方的鏈接://github.com/tekartik/sqflite/issues/380

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM