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'
Related
I have tried to solve it through different pre-answered questions on StackOverflow but they are not working, That is why asking here, Please help.
here is the problem:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\TME_Education\StudioProjects\jeda\android\app\build.gradle' line: 58
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not find method compile() for arguments [com.android.tools.build:gradle:7.1.2] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Here is my dependency
dependencies {
compile 'com.android.tools.build:gradle:7.1.2'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
I was runing the code but this gradle Dependency eror happened.
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
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
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
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.