DungDajHjep, post: 5975267, member: 804466"]Failing to build in Unity 2019.3.0f6 - Conflict with Firebase SDK - Duplicate dependencies · Issue #386 · facebook/facebook-sdk-for-unity · GitHub
Can't build with multidex enabled
For anyone looking for solution.
You have to move your
implementation ‘androidx.multidex:multidex:2.0.1’
and
multiDexEnabled true
from mainTemplate.gradle to launcherTemplate.gradle and it should work.
You should activate these files first here in the Project Setting->Player->Publishing Settings
[QUOTE="I solved it in two steps for Unity 2019.3.11f1:
- Go to Edit->Project Settings->Player->Publishing settings->Tick Custom Properties Gradle Template
- Go to the newly generated gradleTemplate.properties and add these lines to the top:
android.useAndroidX=true
android.enableJetifier=true[/QUOTE]
This worked for me…Thank you