I\'m trying to compile my Android project in Android Studio 0.3.0. Today I get the following error:
Exception in thread \"main\" java.lang.NoClassDefFoundErr
Just putting the solution which worked for me, this should be tried if you are setting up the environment for first time:
For windows: 1) in the environment variables add a new "system variables" ANDROID_SDK_HOME=D:\Program Files\android-sdk-windows (select your home directory of android sdk )
2) modify system variables Path, add "%Android_SDK_HOME%\tools;"