Skyost / RateMyApp

This plugin allows to kindly ask users to rate your app if custom conditions are met (eg. install time, number of launches, etc...).
https://pub.dev/packages/rate_my_app
MIT License
273 stars 111 forks source link

Fail to build apps compiling for Android SDK 31 #117

Closed lohanbodevan closed 2 years ago

lohanbodevan commented 2 years ago

Describe the bug If we include RateMyApp in project which is compiling Android SDK 31 (compileSdkVersion 31) the build fails with the error below:

* What went wrong:
Execution failed for task ':rate_my_app: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.

To Reproduce Steps to reproduce the behavior:

  1. Add latest RateMyApp as dependency of project using compileSdkVersion 31 on android/build.gradle
  2. Run flutter build apk

Expected behavior Build completes successfully