One Game Doesn't Compile In Eclipse But The Rest Do?

Discussion in 'Buildbox General Discussion' started by andreas_kviby, Aug 11, 2016.

  1. andreas_kviby

    andreas_kviby Avid Boxer

    Joined:
    Feb 5, 2016
    Messages:
    170
    Likes Received:
    44
    I have created three games and two of them all compile in Eclipse with the standard set of warnings. But the first game SWITCH does not.

    I have deleted all ads settings, all license keys, game services id, leaderboard id and so on to make sure it does not have to do with that.

    I also got excellent help from @jcalle for searching for error but even he didn't solve this issue.

    I really need to solve this, any ideas? Screenshot is from the error section in Eclipse.

    [​IMG]
    There must be some trouble in the BB project.
     
  2. roy

    roy Boxer

    Joined:
    Jul 23, 2016
    Messages:
    69
    Likes Received:
    27
    The problem is most probably that you are using the - in Java - reserved word switch in your package name.

    Just change your package name and try again.
     
    andreas_kviby likes this.
  3. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,193
    Likes Received:
    541
    Hi, I created a project, "com.example.android.switch" and gives me the same error, changing the name to "com.example.android.game" no longer gives me any errors.

    Thanks @roy
     
    andreas_kviby likes this.
  4. andreas_kviby

    andreas_kviby Avid Boxer

    Joined:
    Feb 5, 2016
    Messages:
    170
    Likes Received:
    44

Share This Page