Firebase is not connecting and its show an error like Could not parse the Android Application Module’s Gradle config. Resolve gradle build issues and/or resync.
some people say to remove the jcenter()..But in my app gradle i didnt see any all projects repository
This is my application built.gradle…
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}`
3
Answers
I had the same problem when trying to add a repository for "maven { url ‘https://jitpack.io’ }" with gradle 7.0.2.
When I add the allprojects block: –
I get the following error.
The reason is due to the dependencyResolutionManagement block in settings.gradle.
To resolve it, simply go to "settings.gradle" file comment off the whole block for ‘dependencyResolutionManagement’.
Then reSync your project and it should work.
change like this in settings.gradle
I had the same problem while adding "maven { url ‘https://jitpack.io’ }"
I solved the issue by adding it to settings.gradle file as below,
Go to
setting.gradle
file. Then addmaven { url 'https://jitpack.io' }
this line.