D8 failed when using firebase database in extension

Hi,

I am using firebase database within my extension and when compiling the apk which also contains AI2 firebase DB component the build fails due to ERROR: d8 failed.

My extension is built without proguard as its causing issues in build when compiled with proguard. The build fails due to duplicate classes or conflicts with AI2 firebase DB.

Any suggestions on how to avoid this conflict will be much appreciated.

Ai2 adds androidx libraries to the APK, I think your extension contains some androidx libraries that are duplicated. If you can't use the androidx libraries that are in ai2, because they are e.g. too old, then only proguard comes into play.

1 Like