I followed the multidex guide at https://developer.android.com/tools/building/multidex.html
But I get this error Gradle DSL method not found : \'multiDexEnab
In app/build.gridle under defaultConfig add:
defaultConfig {
...
multiDexEnabled true
...
}
Then, at the bottom, add this code exactly like this if you dont have dependencies block already:
dependencies {
...
implementation "com.android.support:multidex:1.0.3"
...
}
Finally, in pubspec.yaml under dependencies add:
firebase_core: ^0.5.0+1
After these changes your app should work properly.