Eclipse Errors after Android SDK change

后端 未结 4 960
悲&欢浪女
悲&欢浪女 2020-12-21 11:09

I was having a problem upgrading my Android SDK so i did a clean re-install of the SDK in a new location. When I have updated my build path in eclipse, but im getting the f

相关标签:
4条回答
  • 2020-12-21 11:26

    This problem can have various origins and can almost certainly be resolved by creating a new Eclipse workspace. You'll lose all you preferences and will need to reinstall any add-ons.

    In my case the root of the problem was my JDK version. Eclipse had evidently located my JDK 7 installation and had set it to default. Simply changing the preference back to JDK 6 and restarting Eclipse resolved it.

    0 讨论(0)
  • 2020-12-21 11:33

    Do you have libs in your project? if so, then create "libs" folder in your project, move all your libraries to that folder and refresh build pathes

    0 讨论(0)
  • 2020-12-21 11:46

    I just fixed it, here's what I did.

    1. Go to Window -> Preferences and then Android. Check to make sure your SDK location is set to C:\Program Files\Android\android-sdk
    2. If your new SDK location doesn't have all SDKs you previously installed, use the SDK manager to reinstall them
    3. Exit eclipse and then manually navigate to your workspace and remove any projects you recently added
    4. Open eclipse and Fix Project Properties if necessary
    0 讨论(0)
  • 2020-12-21 11:51

    You need to open up Eclipse > Preferences. Then go into the Android top-level node. You can set your new SDK Location: there. That should fix your issue, provided you installed the right SDK levels that your projects are depending on.

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