I deleted some of my files in my C-drive after that my flutter project is not running and showing this exception - flutter

FAILURE: Build failed with an exception.
Where:
Settings file 'C:\Users\hassa\development\GIFT-Transport-Management-System\gtms\android\settings.gradle' line: 11
What went wrong:
A problem occurred evaluating settings 'android'.
Failed to deserialize script metadata extracted for script 'C:\flutter\flutter\packages\flutter_tools\gradle\app_plugin_loader.gradle'
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
I tried to delete some of the files.

Related

flutter build in error does not run in android

FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users\sajid\Desktop\amazon_clonee\android\app\build.gradle' line: 25
What went wrong:
A problem occurred evaluating project ':app'.
Could not get unknown property 'plugin' for project ':app' of type org.gradle.api.Project.
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 2s
Exception: Gradle task assembleDebug failed with exit code 1
Any one solve this error

Could not load compiled classes for script 'C:\src\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' from cache

how can i solve this error ?
FAILURE: Build failed with an exception.
Where:
Build file 'E:\00-flutter_project\crypto_predection\android\app\build.gradle' line: 26
What went wrong:
A problem occurred evaluating project ':app'.
Could not load compiled classes for script 'C:\src\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' from cache.
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 2m 33s
Exception: Gradle task assembleDebug failed with exit code 1

when I added the firebase_dynamic_links plugin I got This error in flutter > File 'com.android.builder.files.ZipCentralDirectory#fa121b8'

the full error message
Execution failed for task ':app:mergeDebugNativeLibs'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
File 'com.android.builder.files.ZipCentralDirectory#1e2d5e4f' was deleted, but previous version not found in cache
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 5s
Exception: Gradle task assembleDebug failed with exit code 1

run the app for first time have this error

i am begginer
i try to play an app in android studio but I cant and showed me this error.
can you help me?
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project 'android'.
Could not resolve all artifacts for configuration ':classpath'.
Could not find builder.jar (com.android.tools.build:builder:3.5.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.5.0/builder-3.5.0.jar
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

Is there any solution for this Error running Gradle problem?

When I try to run any of my flutters project I face this issue
console:
Error running Gradle:
ProcessException: Process "C:\Users\User\Downloads\flutter_app\android\gradlew.bat" exited abnormally:
Configure project :app
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 36
What went wrong:
A problem occurred evaluating script.
FlutterPlugin
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 1s
Command: C:\Users\User\Downloads\flutter_app\android\gradlew.bat app:properties
Finished with error: Please review your Gradle project setup in the android/ folder.