-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Labels
Description
As soon as nextcloud/android-library is part of the project, the instrumented test runner fails with
E/AndroidRuntime: FATAL EXCEPTION: Instr: androidx.test.runner.AndroidJUnitRunner
Process: com.glass.myapplication, PID: 10012
java.lang.NoSuchMethodError: No virtual method intersect(Lorg/junit/runner/manipulation/Filter;)Lorg/junit/runner/manipulation/Filter; in class Landroidx/test/internal/runner/TestRequestBuilder$AnnotationExclusionFilter; or its super classes (declaration of 'androidx.test.internal.runner.TestRequestBuilder$AnnotationExclusionFilter' appears in /data/app/~~-ll-TtJdRUtQZzvWvkndfA==/com.glass.myapplication.test-sfWYAhUDGvpil6R8QOqRmA==/base.apk)
Steps to reproduce:
- open Android-Studio (Dolphin | 2021.3.1. Patch 1)
- create new project: "Empty Compose Activity"
- build project as is
- run ExampleInstrumentedTest / useAppContext -> success
- add "implementation 'com.github.nextcloud:android-library:-SNAPSHOT'" to build.gradle/dependencies
- check build.gradle/compileOptions (no change needed)
- add commons-httpclient to build.gradle/dependencies
- add 'maven { url "https://jitpack.io" }' to settings.gradle/ dependencyResolutionManagement/ repositories
- add configurations.all{exclude ...} to build.gradle
- 'Sync Now' in Android Studio
- re-run ExampleInstrumentedTest / useAppContext -> Fails with error log above
(minSDK was 30, as well as 21)