Error: Could not parse the Android application Module's Gradle Config

Solution 1:

For me by removing the warning of jCenter worked

jCenter()  remove it..

Solution 2:

To solve this on Android Studio v3.1 (not sure about previous versions), just edit your app's build.gradle like this:

  • Look for: apply plugin: 'com.google.gms.google-services' and remove it then sync. Now you'll be able to use the Firebase Assistant with no issues.

Solution 3:

Verify the build tab, and make sure you've got no warning in there.

Firebase Assistant seems to be very sensitive to any Gradle info, warning or error.

For me it was a simple "info" from gradle, that databinding.enabled is not required anymore:

 DSL element 'android.dataBinding.enabled' is obsolete and has been replaced with 'android.buildFeatures.dataBinding'.

Once removed Firebase Assistant worked just well.

Solution 4:

The Navigation Component's safeargs plugin can also cause this. To fix it, I temporarily removed id 'androidx.navigation.safeargs.kotlin' from app-level build.gradle file and then added it back in afterwards.