I get this error when building my Transport app - flutter

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

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

problem occurred evaluating root project 'android'. > problem occurred configuring project ':app'.Cannot invoke method afterEvaluate() on null object

Plugin project :firebase_core_web not found. Please update settings.gradle.
Plugin project :firebase_auth_web not found. Please update settings.gradle.
FAILURE: Build failed with an exception.
Where:
Script 'C:\developement\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 2s
Exception: Gradle task assembleDebug failed with exit code 1
how to solve this problem a search a lot but any solution have

FAILURE: Build failed with an exception, In my flutter project how can i solve it?

FAILURE: Build failed with an exception.
Where:
Build file 'C:\flutterproject\firstproject\android\untitled\android\build.gradle' line: 27
What went wrong:
A problem occurred evaluating root project 'android'.
A problem occurred configuring project ':app'.
Failed to notify project evaluation listener.
> 'org.gradle.api.file.DirectoryProperty org.gradle.api.file.ProjectLayout.directoryProperty(org.gradle.api.provider.Provider)'
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 6s
Exception: Gradle task assembleDebug failed with exit code 1
File → Settings → Build, Execution, Deployment → Instant Run and
uncheck Enable Instant Run.
Hope it works.

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.