??????Android Studio?????????е???????????????£?
????1. https://coderwall.com/p/ybds4w
????http://blog.futurice.com/android_unit_testing_in_ides_and_ci_environments
????2. ???????????£?
Exception in thread "main" java.lang.NoClassDefFoundError: junit/textui/ResultPrinter
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:113)
Caused by: java.lang.ClassNotFoundException: junit.textui.ResultPrinter
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 3 more
?????????????junit  android-studiopluginsjunitlibjunit-rt.jar ?????junit/textui/ResultPrinter ???class????????????????????
????3. com.google.inject??maven????
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>1.0</version>
</dependency>
????4. android-4.0.1.2.jar Maven????
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>4.0.1.2</version>
</dependency>
????5. ??gradle?????????????
????Could not create plugin of type 'AppPlugin'
?????????????
????classpath 'com.android.tools.build:gradle:0.7.0' ??? classpath 'com.android.tools.build:gradle:0.7.3'
????6. ??gradle ????????????????£?
????Unable to load class 'org.gradle.api.artifacts.result.ResolvedComponentResult'
???????????:
????classpath 'com.android.tools.build:gradle:0.7.3'