Following error occurs when migrating from source and target compatibility from 1.8 to 13 FAILURE: Build failed with an exception. What went wrong: Execution failed for task ‘:test’. Failed to read class file C:\Users\FixedSizeFifoDoubleArrayTest.class
Tried changing sourceCompatibility = 1.8 targetCompatibility = 13
Add the following code
tasks.withType(Test){
scanForTestClasses = false
include "**/*Test.class"
}
to build.gradle file as described in the below link