Libraries in extensions causing errors

It is a well-established fact that utilizing two extensions that share identical libraries can lead to compilation errors when creating an APK or AAB package.

I am now interested in discovering a method to integrate these two extensions, which rely on the same libraries, without encountering any compilation errors. This solution should allow for seamless compilation, even if it involves modifying the code of one of the extensions or implementing alternative measures

Thanks