* What went wrong:
Execution failed for task ':sign_in_with_apple:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
> Android resource linking failed
ERROR: /home/path/workspace/deliverables/app_name/build/sign_in_with_apple/intermediates/merged_res/release/values/values.xml:204: AAPT: error: resource android:attr/lStar not found.
I am using flutter 3.27.4 with Dart 3.6.2. I don't have sign_in_with_apple dependency in my pubspec.yaml
When I run flutter build apk --release
, build fails with this error message. However, it builds fine with --debug flag.
Have you tried to add These lines in android/build.gradle (NOT android/app/build.gradle)
subprojects {
afterEvaluate { project ->
if (project.plugins.hasPlugin("com.android.application") ||
project.plugins.hasPlugin("com.android.library")) {
project.android {
compileSdkVersion 34
buildToolsVersion "34.0.0"
}
}
}
}