Hi, thanks for the quick response. Below is as much information as I can give for the moment, if more is needed just ask.
I have also searched everywhere for information about this (and similar problems which are now resolved)
> Task :app:connectedDevelopmentDebugAndroidTest
Starting 0 tests on SM-G970F - 10
Tests on SM-G970F - 10 failed: Instrumentation run failed due to 'Process crashed.'
com.android.build.gradle.internal.testing.ConnectedDevice > No tests found.[SM-G970F - 10] FAILED
No tests found. This usually means that your test classes are not in the form that your test runner expects (e.g. don't inherit from TestCase or lack @Test annotations).
> Task :app:connectedDevelopmentDebugAndroidTest FAILED
This is the output when bumping the version up. Everything works fine when the version is 0.8.4 or less.
In case this helps, here is my system setup:
Windows 10
Java 15 (tried with Java 12 & Java 8 too)
Gradle 6.7 (Tried with 6.6, 6.5 & 6.3)
In case this helps too, here are parts of my project setup (unfortunately I can't share everything). It is a single module with different flavors
compileSdkVersion 30
buildToolsVersion "30.0.0"
...
buildTypes {
debug {
testCoverageEnabled true
}
}
...
androidTestImplementation "androidx.test.espresso:espresso-core:3.3.0"
androidTestImplementation "androidx.test.espresso:espresso-contrib:3.3.0"
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-web:3.3.0'
androidTestImplementation "androidx.test.ext:junit:1.1.2"
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'com.squareup.okhttp3:mockwebserver:4.9.0'
As said my tests run fine without Jacoco or on a lower version so it is definitely related (just may not be the cause) however I have tried a lot of different things like changing the java version or gradle and even frameworks within my test code (turns out I was actually using legacy libraries) but as far as I can see everything is up to date and I tend to stick to either googles or androids documentation when developing.