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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved Several issues with unity

Discussion in 'Editor & General Support' started by Huwey, Apr 8, 2023.

  1. Huwey

    Huwey

    Joined:
    Mar 17, 2019
    Posts:
    29
    When I load Unity I'm now getting the following issue

    upload_2023-4-8_9-29-58.png

    I have uninstalled/reinstalled unity, I've installed the specific version of java that the external tools says its looking for and directed it to that location and still getting this issue when I load unity (2022.2.14f1 & 2021.3.22f1)

    Also have the following messages show up in the console when opening my project (after closing the previously mentioned dialogue box twice)

    Assets\IronSource\DemoScene\IronSourceDemoScript.cs(99,9): warning CS0618: 'IronSourceEvents.onImpressionSuccessEvent' is obsolete: 'This method has been deprecated and won't be included in ironSource SDK versions 7.3.0 and above. Please use OnImpressionDataReady instead.'

    using code to prevent emojis
    Code (CSharp):
    1.  
    2. Failed with exception GooglePlayServices.JavaUtilities+ToolNotFoundException: jar not found.
    3.   at GooglePlayServices.JavaUtilities.FindJavaTool (System.String javaTool) [0x0009a] in <6107d0e161ea44f5b1a06a3cb63d4bc0>:0
    4.   at GooglePlayServices.JavaUtilities.get_JarBinaryPath () [0x00000] in <6107d0e161ea44f5b1a06a3cb63d4bc0>:0
    5.   at GooglePlayServices.PlayServicesResolver.ExtractZip (System.String zipFile, System.Collections.Generic.IEnumerable`1[T] extractFilenames, System.String outputDirectory, System.Boolean update) [0x000cb] in <6107d0e161ea44f5b1a06a3cb63d4bc0>:0
    6. UnityEngine.Debug:Log (object)
    7. Google.Logger:Log (string,Google.LogLevel)
    8. GooglePlayServices.PlayServicesResolver:Log (string,Google.LogLevel)
    9. GooglePlayServices.PlayServicesResolver:ExtractZip (string,System.Collections.Generic.IEnumerable`1<string>,string,bool)
    10. Google.GradleWrapper:Extract (Google.Logger)
    11. GooglePlayServices.GradleResolver:GradleResolution (string,string,bool,bool,System.Action`1<System.Collections.Generic.List`1<Google.JarResolver.Dependency>>)
    12. GooglePlayServices.GradleResolver:DoResolutionUnsafe (string,bool,System.Action)
    13. GooglePlayServices.GradleResolver/<DoResolution>c__AnonStorey13:<>m__1D ()
    14. Google.RunOnMainThread:ExecuteNext ()
    15. Google.RunOnMainThread:<ExecuteAll>m__A ()
    16. Google.RunOnMainThread:RunAction (System.Action)
    17. Google.RunOnMainThread:ExecuteAll ()
    18. Google.RunOnMainThread:Run (System.Action,bool)
    19. GooglePlayServices.GradleResolver:DoResolution (string,bool,System.Action)
    20. GooglePlayServices.PlayServicesResolver:ResolveUnsafe (System.Action`1<bool>,bool,bool,bool)
    21. GooglePlayServices.PlayServicesResolver/<ScheduleResolve>c__AnonStorey1E:<>m__3F ()
    22. GooglePlayServices.PlayServicesResolver:ExecuteNextResolveJob ()
    23. GooglePlayServices.PlayServicesResolver:ScheduleResolve (bool,bool,System.Action`1<bool>,bool)
    24. GooglePlayServices.PlayServicesResolver:AutoResolve (System.Action)
    25. GooglePlayServices.PlayServicesResolver:<ScheduleAutoResolve>m__47 ()
    26. Google.RunOnMainThread:ExecutePollingJobs ()
    27. Google.RunOnMainThread:<ExecuteAll>m__A ()
    28. Google.RunOnMainThread:RunAction (System.Action)
    29. Google.RunOnMainThread:ExecuteAll ()
    30. UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
    31.  
    And
    Code (CSharp):
    1.  
    2. Job failed with exception: GooglePlayServices.JavaUtilities+ToolNotFoundException: jar not found.
    3.   at GooglePlayServices.PlayServicesResolver.ExtractZip (System.String zipFile, System.Collections.Generic.IEnumerable`1[T] extractFilenames, System.String outputDirectory, System.Boolean update) [0x00130] in <6107d0e161ea44f5b1a06a3cb63d4bc0>:0
    4.   at Google.GradleWrapper.Extract (Google.Logger logger) [0x00045] in <6107d0e161ea44f5b1a06a3cb63d4bc0>:0
    5.   at GooglePlayServices.GradleResolver.GradleResolution (System.String destinationDirectory, System.String androidSdkPath, System.Boolean logErrorOnMissingArtifacts, System.Boolean closeWindowOnCompletion, System.Action`1[T] resolutionComplete) [0x00085] in <6107d0e161ea44f5b1a06a3cb63d4bc0>:0
    6.   at GooglePlayServices.GradleResolver.DoResolutionUnsafe (System.String destinationDirectory, System.Boolean closeWindowOnCompletion, System.Action resolutionComplete) [0x000ba] in <6107d0e161ea44f5b1a06a3cb63d4bc0>:0
    7.   at GooglePlayServices.GradleResolver+<DoResolution>c__AnonStorey13.<>m__1D () [0x00000] in <6107d0e161ea44f5b1a06a3cb63d4bc0>:0
    8.   at Google.RunOnMainThread.ExecuteNext () [0x0003d] in <bc484ae24804425b9f40a568d4bcd71d>:0
    9. UnityEngine.Debug:LogError (object)
    10. Google.RunOnMainThread:ExecuteNext ()
    11. Google.RunOnMainThread:<ExecuteAll>m__A ()
    12. Google.RunOnMainThread:RunAction (System.Action)
    13. Google.RunOnMainThread:ExecuteAll ()
    14. Google.RunOnMainThread:Run (System.Action,bool)
    15. GooglePlayServices.GradleResolver:DoResolution (string,bool,System.Action)
    16. GooglePlayServices.PlayServicesResolver:ResolveUnsafe (System.Action`1<bool>,bool,bool,bool)
    17. GooglePlayServices.PlayServicesResolver/<ScheduleResolve>c__AnonStorey1E:<>m__3F ()
    18. GooglePlayServices.PlayServicesResolver:ExecuteNextResolveJob ()
    19. GooglePlayServices.PlayServicesResolver:ScheduleResolve (bool,bool,System.Action`1<bool>,bool)
    20. GooglePlayServices.PlayServicesResolver:AutoResolve (System.Action)
    21. GooglePlayServices.PlayServicesResolver:<ScheduleAutoResolve>m__47 ()
    22. Google.RunOnMainThread:ExecutePollingJobs ()
    23. Google.RunOnMainThread:<ExecuteAll>m__A ()
    24. Google.RunOnMainThread:RunAction (System.Action)
    25. Google.RunOnMainThread:ExecuteAll ()
    26. UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

    And my final issue which is probably related to the above issues is when I try to build my game it gets stuck.
    upload_2023-4-8_9-52-31.png

    As you can see I let this sit for 7 1/2 hours and it didn't move. It was at this point within a minutes time at most.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,954
    This might help for the ironsource noise:

    Extra unwanted packages in new projects (collab, testing, rider and other junk):

    https://forum.unity.com/threads/temp-unityengine-testrunner-dll-error.1133938/#post-7287748

    About the fastest way I have found to make a project and avoid all this noise is to create the project, then as soon as you see the files appear, FORCE-STOP (hard-kill) Unity (with the Activity Manager or Task Manager), then go hand-edit the Packages/manifest.json file as outlined in the above post, then reopen Unity.

    Sometimes the package system gets borked from all this unnecessary churn and requires the package cache to be cleared:

    https://stackoverflow.com/questions/53145919/unity3d-package-cache-errors/69779122

    More generally...

    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
     
    Mad_max666 likes this.
  3. Huwey

    Huwey

    Joined:
    Mar 17, 2019
    Posts:
    29
    Sorry for the late reply, I started a new project and it opened just fine, so then I imported everything from my project into thi9s one and it's been working just fine every since then. And has allowed me to build the game as well.
     
    Kurt-Dekker likes this.
  4. Mad_max666

    Mad_max666

    Joined:
    Jul 10, 2021
    Posts:
    3

    This is my light at the end of a tunnel rn. Much appreciated
     
    Kurt-Dekker likes this.