diff --git a/contract-tests/build.gradle b/contract-tests/build.gradle index cbc145c9..8def8018 100644 --- a/contract-tests/build.gradle +++ b/contract-tests/build.gradle @@ -24,10 +24,15 @@ android { } } +configurations.all { + // Exclude error_prone_annotations as it's compile-time only and causes dexing issues + exclude group: 'com.google.errorprone', module: 'error_prone_annotations' +} + dependencies { // https://mvnrepository.com/artifact/org.nanohttpd/nanohttpd implementation("org.nanohttpd:nanohttpd:2.3.1") - implementation("com.google.code.gson:gson:2.8.9") + implementation("com.google.code.gson:gson:2.13.2") implementation("com.squareup.okhttp3:okhttp:4.9.2") implementation(project(":launchdarkly-android-client-sdk")) // Comment the previous line and uncomment this one to depend on the published artifact: diff --git a/launchdarkly-android-client-sdk/build.gradle b/launchdarkly-android-client-sdk/build.gradle index 7625ada7..d46aa03c 100644 --- a/launchdarkly-android-client-sdk/build.gradle +++ b/launchdarkly-android-client-sdk/build.gradle @@ -54,6 +54,9 @@ configurations { configurations.all { // allows snapshot dependencies to be updated resolutionStrategy.cacheChangingModulesFor 0, 'seconds' + + // Exclude error_prone_annotations as it's compile-time only and causes dexing issues + exclude group: 'com.google.errorprone', module: 'error_prone_annotations' } ext {} @@ -61,7 +64,7 @@ ext.versions = [ "androidAnnotation": "1.2.0", "androidAppcompat": "1.1.0", "eventsource": "3.0.0", - "gson": "2.8.9", + "gson": "2.13.2", "jacksonCore": "2.10.5", "jacksonDatabind": "2.10.5.1", "junit": "4.13", diff --git a/shared-test-code/build.gradle b/shared-test-code/build.gradle index 44180c27..9cd5f9f6 100644 --- a/shared-test-code/build.gradle +++ b/shared-test-code/build.gradle @@ -11,7 +11,7 @@ version = version ext {} ext.versions = [ "androidAnnotation": "1.2.0", - "gson": "2.8.9", + "gson": "2.13.2", "junit": "4.13", "launchdarklyLogging": "1.1.1", ] @@ -26,6 +26,11 @@ android { } } +configurations.all { + // Exclude error_prone_annotations as it's compile-time only and causes dexing issues + exclude group: 'com.google.errorprone', module: 'error_prone_annotations' +} + dependencies { implementation(project(":launchdarkly-android-client-sdk"))