Skip to content

Build Failure: :unique_identifier:verifyReleaseResources Task Failed #22

@MazenxELGayar

Description

@MazenxELGayar

Issue Title

Build Failure: :unique_identifier:verifyReleaseResources Task Failed

Description

The build process failed for the :unique_identifier module during the release build with the following exception:

Execution failed for task ':unique_identifier:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR: D:\Programming\flutter_projects\Freelance\Rasid Apps\rasid-dashboard\build\unique_identifier\intermediates\merged_res\release\values\values.xml:194: AAPT: error: resource android:attr/lStar not found.

Steps to Reproduce

  1. Attempt to build the release version of the application.
  2. Observe the failure during the verifyReleaseResources task of the :unique_identifier module.

Expected Behavior

The release build should succeed without any resource linking errors.

Actual Behavior

The build fails due to a missing android:attr/lStar resource during the verifyReleaseResources task.

Possible Solutions

  • Verify the Android Gradle Plugin version. Update to a version that supports the android:attr/lStar attribute.
  • Update the compile SDK version in the build.gradle file to a level that includes this attribute (e.g., SDK 31 or above).

Logs and Output

Relevant Log Snippet:

> Android resource linking failed
     ERROR: D:\Programming\flutter_projects\Freelance\Rasid Apps\rasid-dashboard\build\unique_identifier\intermediates\merged_res\release\values\values.xml:194: AAPT: error: resource android:attr/lStar not found.

Additional Context

This issue often arises when there is a mismatch between the Android Gradle Plugin version and the compile SDK version. Ensure the dependencies and plugins are compatible with the project's target SDK version.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions