From 074813183c6715b7460d932f3008d66ae940b2c2 Mon Sep 17 00:00:00 2001 From: noisegain Date: Wed, 18 Nov 2026 19:07:08 +0300 Subject: [PATCH] Set target SDK for the microbenchmark test APK The microbenchmark module only sets minSdk, so the test APK is built with targetSdkVersion 21. On devices whose minimum supported target SDK is higher (28 on a Galaxy S24+ running Android 17) every benchmark fails with 'ERRORS (not suppressed): ACTIVITY-MISSING'. Set testOptions.targetSdk to the module's compileSdk. --- MicrobenchmarkSample/microbenchmark/build.gradle.kts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MicrobenchmarkSample/microbenchmark/build.gradle.kts b/MicrobenchmarkSample/microbenchmark/build.gradle.kts index eb60f04b..e19e35dc 100644 --- a/MicrobenchmarkSample/microbenchmark/build.gradle.kts +++ b/MicrobenchmarkSample/microbenchmark/build.gradle.kts @@ -8,6 +8,10 @@ plugins { android { compileSdk = 35 + testOptions { + targetSdk = 35 + } + defaultConfig { minSdk = 21