Search Unity

Resolved Have problem with building my android game with unityAds

Discussion in 'Getting Started' started by VladimirYakuba, Jan 28, 2023.

  1. VladimirYakuba

    VladimirYakuba

    Joined:
    Jan 26, 2023
    Posts:
    6
    Hi everyone, when i press build and run button after a time this error appearing
    upload_2023-1-28_18-14-8.png
    im spend around 3 hours trying to fix previous problem when Resolution Failed because unity didnt see gradle or something i dont know, after i fixed that this error appearing on end of building.
    log of error:
    DirectoryNotFoundException: Could not find a part of the path 'F:\Shooter\Temp\gradleOut\launcher\gradle\dependency-locks'.
    System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) (at <695d1cc93cca45069c528c15c9fdd749>:0)
    System.IO.FileSystemEnumerableIterator`1[TSource].HandleError (System.Int32 hr, System.String path) (at <695d1cc93cca45069c528c15c9fdd749>:0)
    System.IO.FileSystemEnumerableIterator`1[TSource].CommonInit () (at <695d1cc93cca45069c528c15c9fdd749>:0)
    System.IO.FileSystemEnumerableIterator`1[TSource]..ctor (System.String path, System.String originalUserPath, System.String searchPattern, System.IO.SearchOption searchOption, System.IO.SearchResultHandler`1[TSource] resultHandler, System.Boolean checkHost) (at <695d1cc93cca45069c528c15c9fdd749>: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 <695d1cc93cca45069c528c15c9fdd749>: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 <695d1cc93cca45069c528c15c9fdd749>:0)
    System.IO.Directory.InternalGetFiles (System.String path, System.String searchPattern, System.IO.SearchOption searchOption) (at <695d1cc93cca45069c528c15c9fdd749>:0)
    System.IO.Directory.GetFiles (System.String path, System.String searchPattern) (at <695d1cc93cca45069c528c15c9fdd749>:0)
    Unity.Mediation.Build.Editor.AndroidLockFilePostGenerateGradleProject.CopyLockFiles (System.String source, System.String destination) (at Library/PackageCache/com.unity.services.mediation@1.0.5/Editor/Build/PostGradle/AndroidLockFilePostGenerateGradleProject.cs:224)
    Unity.Mediation.Build.Editor.AndroidLockFilePostGenerateGradleProject.GenerateAndCopyLockFiles (System.String gradleLauncherProjectLockFilesLocation, System.String assetsAndroidLockFolder, System.String gradleLauncherProject) (at Library/PackageCache/com.unity.services.mediation@1.0.5/Editor/Build/PostGradle/AndroidLockFilePostGenerateGradleProject.cs:155)
    Unity.Mediation.Build.Editor.AndroidLockFilePostGenerateGradleProject.OnPostGenerateGradleAndroidProject (System.String path) (at Library/PackageCache/com.unity.services.mediation@1.0.5/Editor/Build/PostGradle/AndroidLockFilePostGenerateGradleProject.cs:86)
    UnityEditor.Android.AndroidBuildPipelineInterfaces.OnGeneratePlatformProjectPostprocess (System.String path, System.Boolean strict) (at <7ac35247888b44f4a7e290f1f6bb33f3>:0)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
     
  2. VladimirYakuba

    VladimirYakuba

    Joined:
    Jan 26, 2023
    Posts:
    6
    addition:

    FAILURE: Build failed with an exception.

    * What went wrong:
    Failed to load native library 'native-platform.dll' for Windows 10 amd64.

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https://help.gradle.org
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
    i think problem is in 'native-platform.dll' but i dont what it
     
  3. VladimirYakuba

    VladimirYakuba

    Joined:
    Jan 26, 2023
    Posts:
    6
    Solved by give administrator to unity and unity hub
     
  4. RichAllen2023

    RichAllen2023

    Joined:
    Jul 19, 2016
    Posts:
    1,026
    Well done :)