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

前端 未结 8 1208
长发绾君心
长发绾君心 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:14

    Force the project to "sync" via menu: Tools > Android > Sync Project with Gradle Files or force the project to "sync" by making a fake change in build.gradle file (add a space and then delete it and then click "sync now").

提交回复
热议问题