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
  3. Dismiss Notice

2019.2.0f1 is crashing when I clicked on Icon Setting in player setting

Discussion in 'Editor & General Support' started by SadeqSoli, Aug 2, 2019.

  1. SadeqSoli

    SadeqSoli

    Joined:
    Jul 1, 2019
    Posts:
    11
    I'm getting lots of errors around using Unity (semi-) new Scopes.
    I'm getting this error a lot:
    Code (csharp):
    1. Scope was not disposed! You should use the 'using' keyword or manually call Dispose.
    2. UnityEngine.Scope:Finalize()

    does anyone knows what is the problem? and how to fix this thing?
     
  2. alevolhard

    alevolhard

    Joined:
    Oct 25, 2018
    Posts:
    3
    Do you have the solution? i have the same problem
     
  3. Domas_L

    Domas_L

    Unity Technologies

    Joined:
    Nov 27, 2018
    Posts:
    111
    Hello!

    Could you please submit a bug report with a minimal reproduction project for this issue and reply in here with the issue ID?
     
  4. sevenfivel

    sevenfivel

    Joined:
    Mar 25, 2017
    Posts:
    5
    Is this the icon settings for the ANDROID player? If so, then I'm having what may be the same problem. To verify:
    1. clear the console.
    2. open the android player settings window and then close it as quickly as possible.
    3. check the error messages. do you have one that looks like this:
    CommandInvokationFailure: Failed to update Android SDK package list.
    C:/Program Files/Unity/Hub/Editor/2019.2.1f1/
    Editor/Data/PlaybackEngines/AndroidPlayer\SDK\tools\bin\sdkmanager.bat --list

    stderr[

    ]
    stdout[

    ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

    Please set the JAVA_HOME variable in your environment to match the
    location of your Java installation.
    ]
    exit code: 1
    if so, then you probably have the same problem I'm having.
    If you had Unity install the Android SDK and build tools, then you already have a JDK installed, but, for some reason, the Unity build system isn't passing that data to the script that checks the Android package list.
    A simple workaround is to create a JAVA_HOME environment variable and set it to the location of your JDK. for Unity 2019.2.1f1 this will be:
    C:\Program Files\Unity\Hub\Editor\2019.2.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\OpenJDK\Windows
    For other versions, you'll need to adjust the 2019.2.1f1 in the path to the corresponding version number. Also, you'll need to RESTART your computer before the changes will take effect.
    EDIT:
    Further information that might be relevant:
    1. This problem does not seem to occur with Unity 2019.1.14f1 or 2019.3.0b1.
    2. Using the "Build and Run" command seems to work even when that Android Player Settings panel does not.
    3. Manually setting the path to the JDK in the "External Tools" panel doesn't make any difference nor does checking the "Open JDK" option when installing Android build support.
     
    Last edited: Aug 28, 2019
  5. SadeqSoli

    SadeqSoli

    Joined:
    Jul 1, 2019
    Posts:
    11
    .
    .
    hey, man I build my apk for test... after you build one time the Icon Setting problem was solved and I'm working with this version since...hope could help
     
  6. inchtayn123

    inchtayn123

    Joined:
    Apr 13, 2020
    Posts:
    1
    Hi i need help when click in icon nothing shown and i cant even back to other setings ???
     

    Attached Files: