videokit-ai / natshare

Cross-platform social sharing for Unity Engine.
https://github.com/natmlx/videokit
Apache License 2.0
134 stars 28 forks source link

[bug] can't build at android #136

Closed mogmet closed 1 year ago

mogmet commented 1 year ago

Hi!

I want to build at android. but I can't build because of this error.

  java.lang.RuntimeException: Duplicate class android.support.v4.app.INotificationSideChannel found in modules androidx.core.core-1.6.0-runtime.jar (:androidx.core.core-1.6.0:) and natshare-core-1.3.0-runtime.jar (:natshare-core-1.3.0:)
...

image

I have firebase in place and let the External Dependency Manager manage the Android Package. Therefore, it seems to conflict with androidx.core.core-X.X.X-runtime.jar in External Dependency Manager. How can we resolve this issue?

olokobayusuf commented 1 year ago

Hey @mogmet , in Project Settings > NatML > NatShare, disable the "Embed AndroidX" setting. Feel free to create a new issue if the build errors persist.