Skip to content

The function "CopyResource" of "AfterBuildToDo.cs" tries to copy files that not existing #17

@cnyejiasheng

Description

@cnyejiasheng

Huawei HMS AGC Services Version: 2.0.1
When building apk in Unity 2019.4.21f1c1,errors occurred.

DirectoryNotFoundException: Could not find a part of the path '.....Assets\HuaweiHmsDemo\Android\res\xml'.
System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) (at :0)
System.IO.FileSystemEnumerableIterator1[TSource].HandleError (System.Int32 hr, System.String path) (at <eae584ce26bc40229c1b1aa476bfa589>:0) System.IO.FileSystemEnumerableIterator1[TSource].CommonInit () (at :0)
System.IO.FileSystemEnumerableIterator1[TSource]..ctor (System.String path, System.String originalUserPath, System.String searchPattern, System.IO.SearchOption searchOption, System.IO.SearchResultHandler1[TSource] resultHandler, System.Boolean checkHost) (at :0)
System.IO.FileSystemEnumerableFactory.CreateFileNameIterator (System.String path, System.String originalUserPath, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) (at :0)
System.IO.Directory.InternalGetFileDirectoryNames (System.String path, System.String userPathOriginal, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) (at :0)
System.IO.Directory.InternalGetFiles (System.String path, System.String searchPattern, System.IO.SearchOption searchOption) (at :0)
System.IO.Directory.GetFiles (System.String path, System.String searchPattern) (at :0)
AfterBuildToDO.CopyResource (System.String path) (at Assets/HuaweiHms/src/Editor/AfterBuildToDo.cs:45)
AfterBuildToDO.OnPostGenerateGradleAndroidProject (System.String path) (at Assets/HuaweiHms/src/Editor/AfterBuildToDo.cs:73)
UnityEditor.Android.AndroidBuildPipelineInterfaces.OnGeneratePlatformProjectPostprocess (System.String path, System.Boolean strict) (at <9a9c489a855b482d97b08b777abc211f>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions