Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not parse the Android Application Module's Gradle config

I wanna use firebase database but when I clicked on "Connect to firebase" button, I got this problem .... can anyone help me???

Could not parse the Android Application Module's Gradle config. Resolve gradle build issues and/or resync.
like image 332
Eng.OsamaYousef Avatar asked May 05 '18 16:05

Eng.OsamaYousef


People also ask

How do you fix could not parse the Android application module's gradle config?

Just go to your build. gradle (module app) and comment out most of them or all of them (to find out which one) , sync again ignore all error for now and try connecting to firebase again if it's successful then you can go back to your build. gradle and uncomment them to fix errors. Save this answer.

What is project structure in Android Studio?

A project in Android Studio contains everything that defines your workspace for an app, from source code and assets, to test code and build configurations.


1 Answers

This problem is connected with one or more of your plugins.

Paste this:

android.debug.obsoleteApi=true

to your gradle.properties file.

Now make rebuld. You must see a stacktrace with the problem plugin. Switch off this plugin, sync and try to connect to Firebase again - must be success now.

After successful connection to Firebase you can return your plugins, remove that line from the gradle.properties file and resync. Warning will appear again, but it is not important, because Firebase has configured already.

P.S. In my case I had 2 problem plugins: Sceneform and Crashlytics.

like image 98
DmitryKanunnikoff Avatar answered Oct 02 '22 10:10

DmitryKanunnikoff