From cb3c9821f5f8df7135dbb0c07201d977d6dbbc7b Mon Sep 17 00:00:00 2001 From: Alex Fishman Date: Fri, 4 Sep 2026 17:47:05 -0700 Subject: [PATCH] docs(android): fix v6 compileSdk contradiction for foregroundServiceType error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v6/installation.mdx told readers hitting "attribute android:foregroundServiceType not found" to set compileSdkVersion to 29; v6/faq.md gave the same error text but said 35. Per v6/release-notes.md, 6.0.0 is a documented breaking change requiring compileSdk 35, and installation.mdx's own Gradle snippet pulls the latest (6.0.4) SDK — so 29 was actively wrong on the page that matters most. Updated installation.mdx to 35 and reworded faq.md's question so it isn't anchored to a 2019-era SDK version (1.15.0) that no longer reflects when this error actually occurs. Co-Authored-By: Claude Sonnet 5 --- docs/sdk/android/v6/faq.md | 4 ++-- docs/sdk/android/v6/installation.mdx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/sdk/android/v6/faq.md b/docs/sdk/android/v6/faq.md index f2f17af..7f5babf 100644 --- a/docs/sdk/android/v6/faq.md +++ b/docs/sdk/android/v6/faq.md @@ -30,13 +30,13 @@ These values were measured on Google Pixel 5 with Android 12 and can be influenc
-**3. After updating Bugsee Android SDK to version ```1.15.0``` I get the following error:** +**3. I get the following error when building my app:** ```text AAPT: error: attribute android:foregroundServiceType not found. ``` -Please switch `compileSdk` in your build.gradle to the latest version (at least 35, as shown below). +This means your `compileSdk` is too low for the Bugsee SDK version you're using — SDK 6.0.0 and newer require at least 35 (see the [release notes](/sdk/android/v6/release-notes/) for the exact version your build pulls in). Please switch `compileSdk` in your build.gradle to at least 35, as shown below. ```groovy android { compileSdk 35 diff --git a/docs/sdk/android/v6/installation.mdx b/docs/sdk/android/v6/installation.mdx index 89b62d1..33d9b75 100644 --- a/docs/sdk/android/v6/installation.mdx +++ b/docs/sdk/android/v6/installation.mdx @@ -41,7 +41,7 @@ This is the recommended way to install Bugsee. If you use Maven (for example, Android Maven Plugin) to build your project, follow the [Maven Installation](/sdk/android/v6/maven-installation/) instructions. :::warning -If you're getting an "attribute android:foregroundServiceType not found" error, you should set **compileSdkVersion** in your build.gradle file to 29. Make sure you have that Android SDK installed on your system. +If you're getting an "attribute android:foregroundServiceType not found" error, you should set **compileSdkVersion** in your build.gradle file to at least 35 (SDK 6.0.0 and newer require it — see the [release notes](/sdk/android/v6/release-notes/)). Make sure you have that Android SDK installed on your system. ::: ## Initialization