Search Issue Tracker
Third Party Issue
Votes
0
Found in
2020.3
2020.3.0f1
Issue ID
1327425
Regression
No
Android built fails when project uses facebook SDK
How to reproduce:
1. Open users attached project
2. Switch to the Android platform in the Build Settings window
3. Build the project
Expected results: project built successfully
Actual results: project build fails (in some cases times out after ~10 minutes)
Reproducible with: 2020.3
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note:
Facebook SDK that uses AndroidX libraries (the latest facebook SDKs) is being used in the users project.
Because of that user needs to add in the following line in gradleTemplate.properties: android.useAndroidX = true
After doing that other issues appears due to conflicting classes used in the Facebook SDK's Google Play Resolver.
If following lines:
implementation 'com.android.support:appcompat-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
implementation 'com.android.support:cardview-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
implementation 'com.android.support:customtabs:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
implementation 'com.android.support:support-v4:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
Will be taken out from mainTemplate.gradle in the Unity project, then the apk will build successfully.