Is there any solution for this Error running Gradle problem? - flutter

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.

Related

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

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.

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

I get this error when building my Transport app

Plugin project :location_web not found. Please update settings.gradle.
FAILURE: Build failed with an exception.
Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 421
What went wrong:
A problem occurred evaluating root project 'android'.
A problem occurred configuring project ':app'.
Cannot invoke method afterEvaluate() on null object
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 41s
Running Gradle task 'bundleRelease'... 164.9s
Gradle task bundleRelease failed with exit code 1

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

gradle error in flutter while adding dependancies

* Error running Gradle:
ProcessException: Process "C:\Users\Lenovo\Music\c\android\gradlew.bat" exited abnormally:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Lenovo\Music\c\android\app\build.gradle' line: 24
* What went wrong:
A problem occurred evaluating project ':app'.
> ASCII
* 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
Command: C:\Users\Lenovo\Music\c\android\gradlew.bat app:properties
Finished with error: Please review your Gradle project setup in the android/ folder.