Closed palaima closed 8 years ago
as a temp workaround you could list test dependencies as "provided" dependency for main app configuration. Dirty, but does the trick as a temp solution.
For instance, in this case Retrolambda complains about missing Espresso class, so I would assume in your app/build.gradle you have test espresso dependency:
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
What you can do - is to add the following:
provided 'com.android.support.test.espresso:espresso-core:2.2.2'
So you have both androidTestCompile
and provided
configurations
Fixed in 3.3.0
Using
classpath 'me.tatarka:gradle-retrolambda:3.3.0-beta4'
Dependencies for tests
compiling tests with command
./gradlew assembleDebugAndroidTest --debug
gives errorThere is no issues when using with
'me.tatarka:gradle-retrolambda:3.2.5'