Why am i get an error that says "Process finished with exit code 1" in android studio
<p>This is the error thread that is output</p>

<pre><code>"C:\Program Files\Java\jdk1.8.0_102\bin\java" -ea -Didea.launcher.port=7536 "-Didea.launcher.bin.path=C:\Program Files\Android\Android Studio\bin" -Didea.junit.sm_runner -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Android\Android Studio\lib\idea_rt.jar;C:\Program Files\Android\Android Studio\plugins\junit\lib\junit-rt.jar;E:\Program files\Android Studio Files\android-sdk\platforms\android-22\android.jar;E:\Program files\Android Studio Files\android-sdk\platforms\android-22\data\res;C:\Users\pcname\AndroidStudioProjects\projectname\build" com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 @w@C:\Users\pcname\AppData\Local\Temp\idea_working_dirs_junit2.tmp @C:\Users\pcname\AppData\Local\Temp\idea_junit2.tmp -socket51102
Exception in thread "main" java.lang.NoClassDefFoundError: junit/textui/ResultPrinter
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)
Caused by: java.lang.ClassNotFoundException: junit.textui.ResultPrinter
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
</code></pre>