I have been stucked at this for several hours with no respite!
I have done all the recommended suggestions and its becoming a little bit irritating.
So, I am following the official recommendations of adding firebase to a brand new flutter project.
I cant afford to serve only 21 SDKs and above.
So, I am hit with the dex limits simply by adding a few official firebase plugins.
One of the overriding suggestions was to accomodate more than one dex files...sounds neat but for some weird reasons, all recommended steps seemed to work for others but me.
But here is another suggestion, that I reduce the amount of methods imported.
This sounds neater and the best route in my opinion but still, I cant make it work.
As per your suggestion, I tried to import only:
implementation ('com.google.firebase:firebase-core:16.0.7') {
force = true
}
implementation ('com.google.firebase:firebase-database:16.0.6') {
force = true
}and removed
compile 'com.android.support:multidex:1.0.3'
and
classpath 'com.google.gms:google-services:4.2.0'
Several permutations but none seems working.
Why I said this is becoming irritating is, thinking about it....
How am I the only who had ever thought of importing only a few services instead of EVERYTHING into my projects, or how am I the only one convinced that having a bloated project is a big worry on performance.
Just about 4 standard plugins on an empty project triggring 64K method limits.
Isn't that weird?
Now, if I am not the only one with these concerns, why is there no clear-cut solutions to these glaring gotchas?
Why is there no official steps-by-steps instruction that actually works?
Well, at this point, I need every help I can get from anyone who has actually broken through this limits.
Thanks so much!!!!