Android Failed to Build Eclipse Android Project Fix

[2013-11-02 08:26:51 - SearchViewDemo] Dx
trouble writing output: already prepared
[2013-11-02 08:26:51 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
[2013-11-02 08:26:51 - SearchViewDemo] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.

Well that happend to me as I tried to build my latest project.
Solution was quite simple but... strange.
Just remove all newer Android SDK build-tools (i.e. 19) until the Version 18.1.1 with the Android SDK Manager.
Restart Eclipse. And it will work.

If not, try to add the Support Libraries (Right click on your Android Project in Eclipse, choose Android Tools, Add Support Library)

Issue and solutions found here: https://code.google.com/p/android/issues/detail?id=61710

[Win7] Upgrade Error in Android SDK for Windows

Recently I got an error on trying to upgrade my Android SDK, claming that I would not be able to access an URL. I was looking around the Internet and got the information that I should first upgrade the Eclipse Plugin. OK!

Upgrading AVT:
1. In Eclipse go to Help
2. Install New Software ---> Add
3. inside Add Repository write the Name: ADT and Location: https://dl-ssl.google.com/android/eclipse/
4. after loading you should get Developer Tools and NDK Plugins
5. check both if you want to use the Native Developer Kit (NDK) in the future or check Developer Tool only
6. click Next
7. Finish and Restart Eclipse

Source: http://stackoverflow.com/questions/14869929/update-android-sdk-tool-to-22-0-4latest-version-from-22-0-1

Ok, that got my Plugin to the latest version. But I still could not upgrade to the latest SDK. And thats when I found out that you need to start the SDK Manager as Administrator (right click, run as Administator) - and voilá: Upgrade successfully.

Source: http://stackoverflow.com/questions/4771895/android-sdk-manager-not-installing-components