A problem occurred in the build.gradle file - flutter

FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users\it\StudioProjects\untitled\android\app\build.gradle' line: 24
What went wrong:
A problem occurred evaluating project ':app'.
com/google/common/util/concurrent/internal/InternalFutureFailureAccess

Related

Flutter: A problem occurred evaluating project ':app' (firebase-perf)

I updated gradle to 7.4 and got this issue:
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/dani/Desktop/repos/dani/my_rents/android/app/build.gradle' line: 30
* What went wrong:
A problem occurred evaluating project ':app'.
> com/android/build/api/extension/AndroidComponentsExtension
It points to this line:
apply plugin: 'com.google.firebase.firebase-perf'

Error in flutter project build gradle problem

What went wrong:
A problem occurred configuring root project 'android'
Could not resolve all artifacts for configuration
":classpath
Could not find com.android.tools.build:gradle:6.7.
Searched in the following locations:
-nttps:1/dl.google.com/d/android/maven2/com/android/tools/build/aradle/6.7/gradle-6.7.pom
nttps://repo_naven_apache.org/maven2/com/android/tools/build/aradle/6.7/gradle-6.7.pom
Required by:
project

Package Build gradle failed

everytime i add google_maps_flutter package i always get this error but in another project it's fine.
Please help...
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\flutter\.pub-cache\hosted\pub.dartlang.org\google_maps_flutter-2.1.2\android\build.gradle'
* What went wrong:
Could not compile build file 'C:\flutter\.pub-cache\hosted\pub.dartlang.org\google_maps_flutter-2.1.2\android\build.gradle'.
> startup failed:
General error during conversion: Unsupported class file major version 61
java.lang.IllegalArgumentException: Unsupported class file major version 61

sqflite failed to read the directory in flutter

the error appears without any changes that I do:
> * What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Path '/Users/mac/Documents/projects/build/sqflite/intermediates/compiled_local_resources/debug/out' is not a readable directory.
I managed to solve it by upgrading Gradle and kotlin
You can try to add the following line into your app/build.gradle file.
buildToolsVersion "29.0.2"
Look at the official document for more info.

cannot compile unity project

CommandInvokationFailure: Gradle build failed.
C:\Program Files\Java\jdk1.8.0_192\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2018.2.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.10.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleRelease"
stderr[
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':lintVitalRelease'.
Could not resolve all files for configuration ':lintClassPath'.
Could not find org.codehaus.groovy:groovy-all:2.4.12.
Searched in the following locations:
file:/C:/d/programs/android sdk/extras/m2repository/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.pom
file:/C:/d/programs/android sdk/extras/m2repository/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.jar
file:/C:/d/programs/android sdk/extras/google/m2repository/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.pom
file:/C:/d/programs/android sdk/extras/google/m2repository/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.jar
… and more...