natintosh / plugin_libphonenumber

MIT License
5 stars 40 forks source link

Failed to build for targetSdkVersion and compileSdkVersion 31 #6

Closed lohanbodevan closed 1 year ago

lohanbodevan commented 2 years ago

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:

lohanbodevan commented 2 years ago

Hey @natintosh, could you perhaps take a look at the PR I sent? If anything is missing to get it merged, please let me know. I'm happy to adjust. Thank you!