Android: eclipse workspace takes a long time to build?

前端 未结 5 1370
温柔的废话
温柔的废话 2021-02-04 07:07

My eclipse workspace has just one android project in it and is set to \"build automatically\". Every time I make a change to some code, and save the change, the workspace build

相关标签:
5条回答
  • 2021-02-04 07:21

    Removing the device from USB & then re-connect.

    0 讨论(0)
  • 2021-02-04 07:33

    Does it help if you clean your project (menu 'project'-> clean) and does that help?

    This might be something that's a part of the slowness, although it doesn't explain why it's quick after a new import, and then slows down: Android compilation is slow (using Eclipse)

    0 讨论(0)
  • 2021-02-04 07:34

    Under top menu item Project->Build Automatically uncheck the option, then you'll have to build project manually before testing, just select Project->Build Project then Run after build completes.

    0 讨论(0)
  • 2021-02-04 07:35

    You can try in Eclipse:

    Window - > Preferences - > Android -> Build -> Skip packaging and dexing export or launch.(Speeds up automatic builds on file save)

    And

    UnMark : Project - > Build Automatically

    And you can also complete with :

    Window - > Preferences - > General -> Workspace - > Linked Resource - Enable linked resource (unmark) try only if your project not have resources from other project.

    For me stoped building slow process after every save.

    0 讨论(0)
  • 2021-02-04 07:40

    Increasing Xms and Xmx parameters in eclipse.ini worked for me:

    Original values:

    -Xms40m
    -Xmx768m
    

    New values:

    -Xms256m 
    -Xmx1024m
    
    0 讨论(0)
提交回复
热议问题