Cannot run Android project

后端 未结 3 851
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-15 04:15

I have been building my Android application for 2 years and I have never once had this problem until now.

When I load Eclipse, there is a little progress bar in the

相关标签:
3条回答
  • 2021-01-15 04:47

    Suddenly today I'm having the same issue, except I don't have a Android Library Update message, turning off internet also helped start the project for me:

    enter image description here

    I opened up WireShark to investigate why it was relying on an internet connection at startup and I found it was making some HTTP call to http://developer.android.com/reference/

    enter image description here

    Adding the following line to my /etc/hosts file allows me to start up the project with the internet on:

    127.0.0.1       developer.android.com
    
    0 讨论(0)
  • 2021-01-15 05:01

    The First thing I do is

    • make sure you save your project and all it's resources in a different location to keep it safe if something goes wrong, this is a good idea in general (personally i use drop box so that even if something gets worse i can still recover it)

    • Try closing eclipse and starting again, if you get the chance try it while plugged into your router with a Ethernet wire.

    • Make sure to check that Eclipse is up to date so that there are definitively no conflicts.

    • If this doesn't work try un-installing and re-installing eclipse.

    good luck.

    0 讨论(0)
  • 2021-01-15 05:09

    As far as I could tell, this solved the problem:

    1. Disable internet connection. In my case, this simply meant turning off wireless.
    2. Launch Eclipse. Everything will load fine.
    3. Re-enable internet.
    4. Close Eclipse.

    Now opening Eclipse is fine.

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