Exception in thread “main” java.lang.NoClassDefFoundError: junit/textui/ResultPrinter

前端 未结 8 1187
长发绾君心
长发绾君心 2020-12-03 06:35

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         


        
8条回答
  •  爱一瞬间的悲伤
    2020-12-03 07:03

    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;"

提交回复
热议问题