'Cannot pin Android plugin version in Flutter app
Because of the bug in firebase_auth plugin I'm getting Java memory error reports in Crashlytics. So I want to pin firebase-auth Android plugin to 20.0.4 version.
I added classpath 'com.google.firebase:firebase-auth:20.0.4' buildscript dependency to android/build.gradle. I also specified Android plugin version in locally cached Flutter plugin's build.gradle with implementation 'com.google.firebase:firebase-auth:20.0.4' (version was not specified here).
I also tried Android project clean and Flutter clean. But the errors are still present because plugin version is not changed. I checked my APK - it has firebase-auth.properties file with the following content:
version=21.0.3
client=firebase-auth
firebase-auth_client=21.0.3
Why is it still 21.0.3 and how to change that?
UPDATE:
I tried upgrading to 21.0.5 and it works, but downgrade does not work.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
