Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade compileSdkVersion to 34 to fix "lStar not found" build issue #264

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

gdelataillade
Copy link

Goal

This change is necessary to resolve an issue during the build process caused by an outdated compileSdkVersion. Specifically, the error occurred while verifying Android resources:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ‘:bugsnag_flutter:verifyReleaseResources’.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR: /Users/gdelataillade/dev/evolum_app/build/bugsnag_flutter/intermediates/merged_res/release/mergeReleaseResources/values/values.xml:194: AAPT: error: resource android:attr/lStar not found.

Design

The approach used was to upgrade the compileSdkVersion from 31 to 34 in the Bugsnag Flutter dependency. This fixes the missing resource issue, as the newer SDK version supports the required attributes.

Changeset

Updated compileSdkVersion from 31 to 34 in the bugsnag_flutter module to align with the latest Android SDK compatibility.

Testing

The change was tested by rebuilding the Flutter project using the new SDK version. I use the following environment:

Flutter (Channel stable, 3.24.3, on macOS 15.0.1 24A348 darwin-arm64)

After the update, the build was successful, and no further errors related to resource linking were encountered.

@RobertoSmartBear RobertoSmartBear requested review from robert-smartbear and removed request for robert-smartbear October 18, 2024 13:24
@mclack
Copy link

mclack commented Oct 22, 2024

Hi @gdelataillade

The missing lStar attribute was added in SDK 31: https://developer.android.com/reference/android/R.attr#lStar

We are currently upgrading our compileSdkVersion from 29 to 31: #265

This should resolve the issue you were seeing, and we will make sure to update this thread when the new release is available.

@mclack mclack added the wip There is work in progress label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip There is work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants