Eclipse Compiling Error

Discussion in 'How Can I...?' started by thomasburgess2000, Nov 15, 2015.

  1. thomasburgess2000

    thomasburgess2000 Boxer

    Joined:
    Nov 10, 2015
    Messages:
    23
    Likes Received:
    6
    I am trying to get the Android APK of my app but whenever I try to export it from Eclipse it has three errors that say "The method ceil(float) is undefined for the type FloatMath". Any idea what this is about or some other way I can export this?

    Thanks!
     
  2. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
  3. HungaryBoy

    HungaryBoy Boxer

    Joined:
    Sep 30, 2015
    Messages:
    16
    Likes Received:
    4
    You trying to make game with SDK 6.0 or higher.
    Just Erase Float from FloatMath and will be ok.
    Save it and go to Project - Clean.
     
    thomasburgess2000 likes this.
  4. thomasburgess2000

    thomasburgess2000 Boxer

    Joined:
    Nov 10, 2015
    Messages:
    23
    Likes Received:
    6
  5. duslicrest

    duslicrest Boxer

    Joined:
    Nov 24, 2015
    Messages:
    35
    Likes Received:
    1
    Does anyone have the eclipse download? I went on the website and there is several downloads.. I don't know which one I need.
     
  6. thomasburgess2000

    thomasburgess2000 Boxer

    Joined:
    Nov 10, 2015
    Messages:
    23
    Likes Received:
    6
  7. duslicrest

    duslicrest Boxer

    Joined:
    Nov 24, 2015
    Messages:
    35
    Likes Received:
    1
    Thanks, also would you happen to know how to fix this, when I go to test the game on eclipse, I right click the thing on the side bar and click run as, "Android Application" but it comes up with an error: "Your project contains errors, please fix them before running your application"
     
  8. thomasburgess2000

    thomasburgess2000 Boxer

    Joined:
    Nov 10, 2015
    Messages:
    23
    Likes Received:
    6
    Yeah, this happened to me a lot before I finally got it to work. Can you post a screenshot of which errors are occurring? I think they will probably be language errors and FloatMath errors, of which I can fix both. You also may have an error that says something like "unable to find Android 21" and I can tell you how to fix that too. @duslicrest
     
  9. duslicrest

    duslicrest Boxer

    Joined:
    Nov 24, 2015
    Messages:
    35
    Likes Received:
    1
    [​IMG]
    If you can't figure it out thanks anyway.
     
  10. thomasburgess2000

    thomasburgess2000 Boxer

    Joined:
    Nov 10, 2015
    Messages:
    23
    Likes Received:
    6
    Ok yeah just delete "Float" from each "FloatMath" then save the project and then go to "Project>Clean." That should fix it. @duslicrest
     
  11. duslicrest

    duslicrest Boxer

    Joined:
    Nov 24, 2015
    Messages:
    35
    Likes Received:
    1
    Thank you so much you fixed the errors, but one more question, when I ran it, this came up, do I click yes or no?
    [​IMG]
     
  12. thomasburgess2000

    thomasburgess2000 Boxer

    Joined:
    Nov 10, 2015
    Messages:
    23
    Likes Received:
    6
    Depends on what you are trying to do. If you are trying to run your app on an emulator, then yes. But you could do that in Buildbox.. Are you trying to export the APK to run on your device? @duslicrest
     
  13. duslicrest

    duslicrest Boxer

    Joined:
    Nov 24, 2015
    Messages:
    35
    Likes Received:
    1
    I want to export it as a APK.
     
  14. thomasburgess2000

    thomasburgess2000 Boxer

    Joined:
    Nov 10, 2015
    Messages:
    23
    Likes Received:
    6
  15. duslicrest

    duslicrest Boxer

    Joined:
    Nov 24, 2015
    Messages:
    35
    Likes Received:
    1
    Okay so I did that but another error came up and it says this:
    [​IMG]
    and then when I click ok, there is now 17 more errors...
    [​IMG]
     
  16. thomasburgess2000

    thomasburgess2000 Boxer

    Joined:
    Nov 10, 2015
    Messages:
    23
    Likes Received:
    6
    Ok right click on your project in the Package Explorer tab, click Properties at the bottom, click Android Lint Preferences, then click Ignore All. Then resave and clean then try building the APK again through Android Tools. @duslicrest
     
  17. duslicrest

    duslicrest Boxer

    Joined:
    Nov 24, 2015
    Messages:
    35
    Likes Received:
    1
    Thanks a lot that fixed it, but one more thing, I don't know how to do this keystore thing? The guide wasn't very clear about it.
     
  18. thomasburgess2000

    thomasburgess2000 Boxer

    Joined:
    Nov 10, 2015
    Messages:
    23
    Likes Received:
    6
    Yeah for sure. You just do what the guide said and if you don't understand that this explains it as well: Hope it helps. @duslicrest
     
    Collin Wade Thiessen likes this.
  19. duslicrest

    duslicrest Boxer

    Joined:
    Nov 24, 2015
    Messages:
    35
    Likes Received:
    1
    Thanks man you are a life saver!
     
  20. duslicrest

    duslicrest Boxer

    Joined:
    Nov 24, 2015
    Messages:
    35
    Likes Received:
    1
    Sorry to bother you but when I was making another APK just doing exactly what you said and these errors came up when I imported the files.. I have no idea why this is happening.
    [​IMG]
     

Share This Page