The Flutter library for RevCat depends on androidx.core:core-ktx, and Google’s latest version androidx.core 1.7.0-alpha02 is causing Android build errors and preventing app deployment. Is there anything RevCat can do to address this, or anything you’d recommend we do on our end? Our pubspec.lock/yaml file haven’t been updated in a while so not sure why Google’s latest change impacts us.
For more details on our issue:
Running our Android emulator without any new changes or library updates suddenly started breaking with `error: resource android:attr/lStar not found`. From investigation, we saw a lot of Flutter & React Native developers posting the same issue:
- https://www.reddit.com/r/Unity3D/comments/ph2596/android_builds_fail_due_to_core170alpha02_release/
- https://stackoverflow.com/questions/69033022/message-error-resource-androidattr-lstar-not-found
- https://stackoverflow.com/questions/69021225/resource-linking-fails-on-lstar/69029908#69029908
We found the androidx.core:core-ktx dependency in purchases_flutter library from running `gradle :app:dependencies > dependencies.txt` in the command line and searching androidx.core:core-ktx:
+--- project :purchases_flutter
| +--- io.flutter:flutter_embedding_debug:1.0.0-05e680e202af9a92461070cb2d9982acad46c83c (*)
| +--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72 -> 1.5.10 (*)
| \--- com.revenuecat.purchases:purchases-hybrid-common:1.7.1
| +--- com.revenuecat.purchases:purchases:4.2.1
| | +--- com.revenuecat.purchases:purchases-core-public:4.2.1
| | | +--- org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.4.10
| | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.10 -> 1.5.21 (*)
| | | +--- com.revenuecat.purchases:purchases-core-utils:4.2.1
| | | | +--- org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.4.10 (*)
| | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.4.10 -> 1.5.21 (*)
| | | | \--- androidx.core:core-ktx:1.3.1 -> 1.7.0-alpha02 (*)