Switch branches/tags
Find file History
nhachicha Update Gradle plugin (#5617)
* Update Readme and Kotlin deps

* update Android Gradle plugin and Gradle wrapper
Latest commit 588796e Jan 8, 2018


Running The Tests

Run them in Android Studio or run them via Gradle:

Instrumentation Tests ./gradlew connectedCheck

Unit Tests ./gradlew test


Depending on what version of Java you have installed you may encounter the following errors:

initializationError(com.your.ClassHere): Bad <init> method call from inside of a branch


Exception in thread "main" java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.robolectric.annotation.Config.application()

These issues manifest themselves because of changes to the Java bytecode verifier. A workaround is to set the -noverify flag on the the JVM.

Typically, the tests can be run via the command line without fail, however, to get them to run in Android Studio you will need to perform the following steps in your run configurations in Android Studio: Unit Test Config Settings

Source 1 Source 2