skip to Main Content

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:

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:Flutteruntitledbuildappintermediatesnavigation_jsondebugnavigation.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:Flutteruntitledbuildappintermediatesnavigation_jsondebugnavigation.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.
deleting the gradle files and the build files.
switching to another laptop.

I will be very grateful if you guys can help me.
Best Regards,
-Roee Hovav.
Peace!

2

Answers


  1. 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

    Login or Signup to reply.
  2. I found the similar error but for me is missing of androidmanifest.xml and I have fixed it

    For me I have deleted the android folder and run command "flutter create ."
    then I got another of errors about "SdkMinVersion" and "Flutter multidex handling is disabled." 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search