Skip to content

[Analytics, Crashlytics] Plugin uses or overrides a deprecated API. #1703

Closed
@Legolaszstudio

Description

@Legolaszstudio

Describe the bug
Every time I build my apk using the flutter command (flutter build apk), I get multiple warnings about the Analytics and Crashlytics plugin. The application runs perfectly, but I'm annoyed by the warnings.

To Reproduce
Steps to reproduce the behaviour:

  1. Use the latest analytics and crashlytics flutter plugins
  2. Build apk using flutter build apk
  3. Get the warning messages:
Note: C:\Users\Novot\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-5.0.9\android\src\main\java\io\flutter\plugins\firebaseanalytics\FirebaseAnalyticsPlugin.java uses or overrides a deprecated API.

Note: C:\Users\Novot\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_crashlytics-0.1.2+4\android\src\main\java\io\flutter\plugins\firebase\crashlytics\firebasecrashlytics\FirebaseCrashlyticsPlugin.java uses or overrides a deprecated API.

Additional context
I think I'm using the latest versions of everything possible:

  • In my pubspec.yaml all packages are set to any
  • In my gradle files I'm using these versions:
implementation 'com.google.firebase:firebase-core:17.2.0'
implementation 'com.google.firebase:firebase-analytics:17.2.1'
implementation 'com.google.firebase:firebase-messaging:20.0.1'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
implementation 'com.google.firebase:firebase-perf:19.0.2'

classpath 'com.android.tools.build:gradle:3.5.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50"
classpath 'com.google.gms:google-services:4.3.3'
classpath 'io.fabric.tools:gradle:1.31.2'
classpath 'com.google.firebase:perf-plugin:1.3.1'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions