diff --git a/sampletorapp/build.gradle b/sampletorapp/build.gradle
index bc0f7d7d2e580b843222fd6866fafb1845489fb3..8f7ab556b38086211c9fd2d4e44d525bb74ff22c 100644
--- a/sampletorapp/build.gradle
+++ b/sampletorapp/build.gradle
@@ -1,7 +1,7 @@
 apply plugin: 'com.android.application'
 
 android {
-    compileSdkVersion 31
+    compileSdkVersion 30
     compileOptions {
         sourceCompatibility JavaVersion.VERSION_1_8
         targetCompatibility JavaVersion.VERSION_1_8
@@ -9,7 +9,7 @@ android {
     defaultConfig {
         applicationId "org.torproject.android.sample"
         minSdkVersion 21
-        targetSdkVersion 31
+        targetSdkVersion 30
         versionCode 1
         versionName "1.0"
     }