Skip to content

Incorrectly reports duplicate Android plugins(and halts build) #570

@Gusten

Description

@Gusten

Just want to start with saying great work on this SDK!

  • Unity version: 2017.3.1f1

  • Mapbox SDK version: 1.3.0

  • Facebook SDK version: 7.11.0

  • The platform you're building to: Android

  • A description of what you're trying to do:
    The custom prebuild plugin checker in Mapbox_Android_prebuild_checks.cs incorrectly flags Facebook plugins as duplicate due to how AndroidLibInfo.BaseFileName is implemented and Facebook's plugin naming. The issue is on line 84 and the grouping on line 52. In this particular case all Facebook plugins will have the BaseFileName of "facebook".
    Is this whole thing really needed btw? My preferred solution would be to just remove this whole file, Since if you actually have duplicate plugins the playresolver will warn you about it. It's not really your responsibility?

  • Steps to recreate the bug if appropriate:
    Create new project > Import Facebook Unity SDK > Import Mapbox Unity SDK > Build while targeting Android.

  • Links to your logs are also helpful:
    DUPLICATE ANDROID PLUGINS FOUND - BUILD WILL MOST LIKELY FAIL!!!
    Resolve to continue.
    facebook:
    Assets\FacebookSDK\Plugins\Android\libs\facebook-applinks.aar
    Assets\FacebookSDK\Plugins\Android\libs\facebook-common.aar
    Assets\FacebookSDK\Plugins\Android\libs\facebook-core.aar
    Assets\FacebookSDK\Plugins\Android\libs\facebook-login.aar
    Assets\FacebookSDK\Plugins\Android\libs\facebook-messenger.aar
    Assets\FacebookSDK\Plugins\Android\libs\facebook-places.aar
    Assets\FacebookSDK\Plugins\Android\libs\facebook-share.aar

UnityEngine.Debug:LogErrorFormat(String, Object[])
Mapbox.Editor.Build.PreBuildChecksEditor:OnPreprocessBuild(BuildTarget, String) (at Assets/Mapbox/Unity/Editor/Build/Mapbox_Android_prebuild_checks.cs:69)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions