Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Error building Player: IndexOutOfRangeException: Array index is out of range.

Discussion in 'Android' started by Brian-Sinasac, Jan 15, 2013.

  1. Brian-Sinasac

    Brian-Sinasac

    Joined:
    Sep 8, 2012
    Posts:
    97
    My project builds fine when set to PC, however when I switch the platform to Android and attempt to build I get:

    Error building Player: IndexOutOfRangeException: Array index is out of range.

    There is no other information (except: Error in file: at line: -1)


    The build appears to crash when locating the SDK...that's the last message I see in build window anyway. I have verified that the link to the SDK is proper in the Unity preferences.

    Any suggestions would be appreciated.
     
  2. Brian-Sinasac

    Brian-Sinasac

    Joined:
    Sep 8, 2012
    Posts:
    97
    Thanks everyone, I figured it out. The error was in the bundle identifier. com.blahblah..blahblah <-- the error was I had an extra period in the bundle indentifier.

    Just updating this thread in case someone else runs into the same issue.
     
  3. humbertomuneraconsult

    humbertomuneraconsult

    Joined:
    Jun 13, 2016
    Posts:
    1
    should change the name for bundle identifier and the problem is fixed ?

    I´m new in unity, thanks
     

    Attached Files: