Skip to content

Failed to build for targetSdkVersion and compileSdkVersion 31 #6

@lohanbodevan

Description

@lohanbodevan

When trying to build Flutter app targeting and compiling for Android SDK version 31, build fails with the following error:

* What went wrong:
Execution failed for task ':libphonenumber_plugin:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR:/Users/xxxx/.gradle/caches/transforms-3/d647e4cf153df5c584ca88f6d0c0ffec/transformed/core-1.7.0/res/values/values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.

Configuration

libphonenumber_plugin version: 0.2.3
Flutter version: 2.10.2

Platform:

  • 📱 iOS
  • 🤖 Android

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