Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to investigate which plugin is causing ArgumentException: The specified path is not of a legal f

Discussion in 'Editor & General Support' started by nina32176, May 29, 2023.

  1. nina32176

    nina32176

    Joined:
    Jun 27, 2018
    Posts:
    12
    Hello,
    I get something like that whiel building for Androidd my game, but on demo project, it doesn't happen:
    ArgumentException: The specified path is not of a legal form (empty).
    System.IO.Path.InsecureGetFullPath (System.String path) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
    System.IO.Path.GetFullPath (System.String path) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
    UnityEditor.Android.PostProcessor.Tasks.NativePlugins.ProcessPlugin (UnityEditor.Android.PostProcessor.PostProcessorContext context, System.String pluginPath, System.String pluginTargetCPU) (at <dd2e71f8d45046b88d6d3169a8084aec>:0)
    UnityEditor.Android.PostProcessor.Tasks.NativePlugins.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <dd2e71f8d45046b88d6d3169a8084aec>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <dd2e71f8d45046b88d6d3169a8084aec>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <dd2e71f8d45046b88d6d3169a8084aec>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <dd2e71f8d45046b88d6d3169a8084aec>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <7105be432fb64891b07085914e6cd5c1>:0)
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

    My question is very simple, how can I tell which plugin/file is breaking and causing this error? I do not want to spend hours or days removing them one by one....
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,122
    Check if there is anything useful in other editor messages, or if there is a build report.

    Oh my goodness, nobody does that.

    Use bisection, do half of them at a time.

    https://en.wikipedia.org/wiki/Bisection_(software_engineering)

    Harness the RAW POWER OF POWERS OF TWO to solve your problem FAST.