1

Currently my gradle has this line: implementation 'com.google.firebase:firebase-storage:16.0.4'

I need to use version 19.1.0, but everytime I change it I get this error:

ERROR: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:12:5-33:19 to override.

I've tried the solution of using tools:replace, but that just results in the whole thing breaking. Is there a better way to do this?

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
jorkington
  • 103
  • 1
  • 5

1 Answers1

1

To use the latest Firebase versions. Your project must be migrated to AndroidX.

Alex Mamo
  • 130,605
  • 17
  • 163
  • 193
Antonio
  • 1,264
  • 7
  • 12