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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

java.lang.IllegalStateException:

Discussion in 'Editor & General Support' started by Jeff_Nasc, Dec 3, 2018.

  1. Jeff_Nasc

    Jeff_Nasc

    Joined:
    Oct 28, 2017
    Posts:
    1
    Good afternoon people,

    I am having some problems with an error on some Samsung devices, on these devices the game does not open and in the google console this error appears: java.lang.IllegalStateException:

    Anyone have an idea how to solve it?

    (Picture attached)

    Thank you
     

    Attached Files:

  2. geverwills

    geverwills

    Joined:
    Sep 28, 2020
    Posts:
    2
    This is generally the exception to throw if the invocation is illegal because of the state of the receiving object. It signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation. for ex. , in case of java.util.List collection, we use next() method of the ListIterator interface to traverse through the java.util.List. If we call the remove() method of the ListIterator interface before calling the next() method then this exception will be thrown as it will leave the List collection in an unstable state.