diff --git a/matrix-sdk-android/build.gradle b/matrix-sdk-android/build.gradle
index 22aa308fab..d467221742 100644
--- a/matrix-sdk-android/build.gradle
+++ b/matrix-sdk-android/build.gradle
@@ -186,7 +186,7 @@ dependencies {
     androidTestImplementation 'androidx.test:runner:1.4.0'
     androidTestImplementation 'androidx.test:rules:1.4.0'
     androidTestImplementation 'androidx.test.ext:junit:1.1.2'
-    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
+    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
     androidTestImplementation 'org.amshove.kluent:kluent-android:1.65'
     androidTestImplementation 'io.mockk:mockk-android:1.12.0'
     androidTestImplementation "androidx.arch.core:core-testing:$arch_version"
diff --git a/vector/build.gradle b/vector/build.gradle
index 72a8cdd003..f6650d5125 100644
--- a/vector/build.gradle
+++ b/vector/build.gradle
@@ -322,7 +322,7 @@ dependencies {
     // Tests
     def kluent_version = '1.67'
     def androidxTest_version = '1.4.0'
-    def espresso_version = '3.3.0'
+    def espresso_version = '3.4.0'
 
     implementation project(":matrix-sdk-android")
     implementation project(":matrix-sdk-android-rx")