Search Unity

Other Not exporting to android

Discussion in 'Editor & General Support' started by DaveyCornerYT, Jan 21, 2023.

  1. DaveyCornerYT

    DaveyCornerYT

    Joined:
    Aug 13, 2022
    Posts:
    3
    D:\2021.3.15f1\Editor\Data\il2cpp\build\deploy\il2cpp.exe --convert-to-cpp --data-folder=D:/Games/VR/Davey Hangout/Library/Bee/artifacts/Android/il2cppOutput/data --generatedcppdir=D:/Games/VR/Davey Hangout/Library/Bee/artifacts/Android/il2cppOutput/cpp --enable-analytics --emit-null-checks --enable-array-bounds-check --dotnetprofile=unityaot-linux --profiler-report --profiler-output-file=D:/Games/VR/Davey Hangout/Library/Bee/artifacts/il2cpp_conv_c00b.traceevents --print-command-line
    Error: il2cpp.InvalidCommandLineArgumentsException: One or more assemblies must be specified using either --directory or --assembly
    at il2cpp.Conversion.ContextDataFactory.CreateConversionDataFromOptions(Il2CppCommandLineArguments il2CppCommandLineArguments)
    at il2cpp.Conversion.ConversionDriver.Run(Il2CppCommandLineArguments il2CppCommandLineArguments)
    at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, Il2CppCommandLineArguments il2CppCommandLineArguments, BuildingOptions buildingOptions, Boolean throwExceptions)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    Building D:\Games\VR\Davey Hangout\Library\Bee\artifacts\unitylinker_xy1a.traceevents failed with output:
    D:\2021.3.15f1\Editor\Data\il2cpp\build\deploy\UnityLinker.exe --search-directory=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed --out=Library/Bee/artifacts/Android/ManagedStripped --include-link-xml=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed\TypesInScenes.xml --include-link-xml=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed\SerializedTypes.xml --include-link-xml=D:/Games/VR/Davey Hangout/Assets\..\Temp\InputSystemLink.xml --include-link-xml=D:\Games\VR\Davey Hangout\Assets\PlayFabSDK\link.xml --include-link-xml=D:\Games\VR\Davey Hangout\Assets\Photon\PhotonUnityNetworking\link.xml --include-link-xml=D:/2021.3.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/AndroidNativeLink.xml --include-directory=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed --profiler-report --profiler-output-file=D:/Games/VR/Davey Hangout/Library/Bee/artifacts/unitylinker_xy1a.traceevents --dotnetprofile=unityaot-linux --dotnetruntime=Il2Cpp --platform=Android --use-editor-options --enable-engine-module-stripping --engine-modules-asset-file=D:/2021.3.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/modules.asset --editor-data-file=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/EditorToUnityLinkerData.json --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/PhotonChat.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/VRBuilder.TextToSpeech.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/VRBuilder.XRInteraction.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/Unity.ProBuilder.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/Unity.InputSystem.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/UnityEngine.SpatialTracking.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/PhotonUnityNetworking.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/VRBuilder.BasicInteraction.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/Unity.XR.Management.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/Unity.XR.OpenXR.Features.RuntimeDebugger.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/VRBuilder.BasicUI.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/PhotonVoice.PUN.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/VRBuilder.Core.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/PhotonVoice.API.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/Unity.TextMeshPro.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/PlayFab.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/Unity.XR.OpenXR.Features.MockRuntime.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/Unity.XR.Interaction.Toolkit.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/PhotonRealtime.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/PhotonUnityNetworking.Utilities.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/Unity.XR.OpenXR.Features.OculusQuestSupport.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/PhotonVoice.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/Unity.Postprocessing.Runtime.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/Unity.XR.CoreUtils.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/PhotonUnityNetworking.Demos.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/Unity.XR.OpenXR.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/Unity.XR.Oculus.dll --include-unity-root-assembly=D:/Games/VR/Davey Hangout/Temp/StagingArea/Data/Managed/Unity.XR.OpenXR.Features.ConformanceAutomation.dll --print-command-line --enable-analytics
    Fatal error in Unity CIL Linker
    Mono.Linker.LinkerFatalErrorException: ILLink: error IL1005: SpeechLib.ISpeechObjectTokens.GetEnumerator(): Error processing method 'SpeechLib.ISpeechObjectTokens.GetEnumerator()' in assembly 'SpeechLib.dll'
    ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'CustomMarshalers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'
    at Unity.IL2CPP.Common.MissingMethodStubber.GetTypeModule(TypeReference type, IEnumerable`1 assemblies)
    at Unity.Linker.Steps.AddUnresolvedStubsStep.MarkAssemblyOfType(UnityLinkContext context, TypeReference type)
    at Unity.Linker.Steps.Marking.UnresolvedStubMarking.HandleUnresolvedType(TypeReference reference)
    at Unity.Linker.Steps.UnityMarkStep.HandleUnresolvedType(TypeReference reference)
    at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference, DependencyInfo reason, IMemberDefinition sourceLocationMember)
    at Mono.Linker.Steps.MarkStep.MarkMarshalSpec(IMarshalInfoProvider spec, DependencyInfo& reason, IMemberDefinition sourceLocationMember)
    at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method, DependencyInfo& reason)
    at Unity.Linker.Steps.UnityMarkStep.ProcessMethod(MethodDefinition method, DependencyInfo& reason)
    at Mono.Linker.Steps.MarkStep.ProcessQueue()
    --- End of inner exception stack trace ---
    at Mono.Linker.Steps.MarkStep.ProcessQueue()
    at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
    at Mono.Linker.Steps.MarkStep.Process()
    at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
    at Unity.Linker.Steps.UnityMarkStep.Process(LinkContext context)
    at Unity.Linker.UnityPipeline.ProcessStep(LinkContext context, IStep step)
    at Mono.Linker.Pipeline.Process(LinkContext context)
    at Unity.Linker.UnityDriver.UnityRun(Boolean noProfilerAllowed, ILogger customLogger)
    at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling(ILogger customLogger, Boolean noProfilerAllowed)
    at Unity.Linker.UnityDriver.RunDriver()
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)


    Build completed with a result of 'Failed' in 79 seconds (79246 ms)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)


    Build completed with a result of 'Failed' in 31 seconds (30873 ms)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in <63965ae56af7489797f355b7c1211ab2>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <63965ae56af7489797f355b7c1211ab2>:0
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    it will not let me export :C im new to unity
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,697
    How to troubleshoot build failures:

    First, make a blank project with a single blank scene and prove that it builds successfully.

    If the blank project does NOT build, go fix your Unity installation or your other tools, such as Android SDK, NDK, JDK, etc. It may even be necessary to change to a different version of Unity3D. It is generally best to stay with LTS versions of Unity3D.

    Until you can build a blank project to the target platform, don't fiddle with anything else.

    Once you can build a blank project, now bisect the problem by bringing over parts of your current project and building it one subsystem at a time, perhaps stubbing things out that might trigger compiler errors.

    Most often things that prevent building are third-party libraries such as Firebase.

    Once you identify the subsystem, go to the documentation for it and make sure you are doing it correctly.

    It may also be helpful to work through a tutorial or two for whatever subsystem is making the build fail.

    Android build not building:

    Recently (circa July 2022) there have been reports of Unity's installer failing to install the Android Tools.

    https://forum.unity.com/threads/cant-build-for-android.1306098/

    Here was how I brought up Unity2020.3.41 and the Android SDK 31 on October 30, 2022:

    https://forum.unity.com/threads/aab...y-2021-3-8-with-jdk-1-8.1322211/#post-8551193

    Android Gradle errors and other related stuff:

    https://forum.unity.com/threads/unity-gradle-bug-please-help.1368018/#post-8625789
     
  3. DaveyCornerYT

    DaveyCornerYT

    Joined:
    Aug 13, 2022
    Posts:
    3
    thanks i fixed this i just remade the game using my scripts that i was actually using and other things i needed!