Skip to content

Commit e7eebc9

Browse files
authored
Merge pull request #392 from android/classdupeworkaround
Workaround for org.checkerframework duplicate class errors.
2 parents 0387cdf + 8f88eee commit e7eebc9

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

ui/espresso/AccessibilitySample/app/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ android {
3030
}
3131
}
3232

33+
34+
3335
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
3436
kotlinOptions {
3537
jvmTarget = "1.8"
@@ -47,6 +49,9 @@ dependencies {
4749
androidTestImplementation 'androidx.test.ext:junit:' + rootProject.extJUnitVersion
4850
androidTestImplementation 'androidx.test:runner:' + rootProject.runnerVersion
4951
androidTestImplementation 'androidx.test.espresso:espresso-core:' + rootProject.espressoVersion
50-
androidTestImplementation 'androidx.test.espresso:espresso-accessibility:' + rootProject.espressoVersion
51-
androidTestImplementation 'com.google.android.apps.common.testing.accessibility.framework:accessibility-test-framework:3.1'
52+
androidTestImplementation('androidx.test.espresso:espresso-accessibility:' + rootProject.espressoVersion) {
53+
// workaround for https://github.com/android/android-test/issues/861
54+
exclude group: 'org.checkerframework', module: 'checker'
55+
}
56+
androidTestImplementation 'com.google.truth:truth:1.1.3'
5257
}

ui/espresso/AccessibilitySample/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
ext.kotlin_version = '1.3.10'
4+
ext.kotlin_version = '1.3.20'
55
repositories {
66
// Insert local test repo here
77
jcenter()
88
google()
9+
mavenLocal()
910
}
1011
dependencies {
11-
classpath 'com.android.tools.build:gradle:4.1.1'
12+
classpath 'com.android.tools.build:gradle:4.2.0'
1213
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1314

1415
// NOTE: Do not place your application dependencies here; they belong

ui/espresso/AccessibilitySample/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip

0 commit comments

Comments
 (0)