Skip to content

Jetifier fails with Facebook SDK 7.17.2 #360

Closed
@doom-goober

Description

@doom-goober

Please fill in the following fields:

Unity editor version: 2019.3.0f6
External Dependency Manager version: 1.2.135.0
Source you installed EDM (from .unitypackage or Unity Package Manager): .unitypackage
Features in External Dependency Manager in use (Android Resolver, iOS Resolver, VersionHandler, etc.): Jetifier
Plugins SDK in use (Firebase, Admob, Facebook, etc.): Firebase, Facebook
Platform you are using the Unity editor on (Mac, Windows, or Linux): Windows
Platform you are targeting (iOS, Android, and/or desktop): Android
Scripting Runtime (Mono, and/or IL2CPP): Mono

Please describe the issue here:

  1. Install Firebase Unity SDK 6.13 (We have Auth, Functions, and Database)
  2. Install Facebook SDK for Unity 7.17.2
  3. Turn Jetifier on.
  4. Force Resolve.
  5. Build and Run onto Android Device.
  6. The build will immediate exception with a series of duplicate class exceptions between AndroidX and android.support libraries:
    java.lang.RuntimeException: Duplicate class android.support.customtabs.ICustomTabsCallback found in modules classes.jar (androidx.browser:browser:1.0.0) and classes.jar (com.android.support:customtabs:28.0.0)

Other Notes: It appears the Unity Dependency Manager is failing to correctly Jetify the Facebook SDK. However, if you export the project and let Android Studio Jetify the project, everything works fine.

Please answer the following, if applicable:

What's the issue repro rate? (eg 100%, 1/5 etc)
100%

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions