flutter_applovin_max
flutter_applovin_max copied to clipboard
Error on Flutter 3
After upgrading to flutter 3.0 I'm unable to build my app, cause this error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_applovin_max:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
> Android resource linking failed
ERROR:/Users/macbook/.gradle/caches/transforms-3/0123220a926b91b7b1a7e879eb692300/transformed/core-1.7.0/res/values/values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.
Flutter doctor output:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.0, on macOS 11.6 20G165 darwin-x64, locale es-EC)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.67.1)
[✓] Connected device (2 available)
[✓] HTTP Host Availability
• No issues found!
I have the same problem
Same here, no solution so far, all solutions recommend upgrading to compileSDK 31 and targetSDK 31 , but I think it's this plugin author who should do it in the plugin project. current SDK is 29.


As a temp solution, what I basically did was, clone this repo, remove the example folder, and then paste the flutter_applovin_max folder into my own project, and then change the compileSdkVersion 29
to compileSdkVersion 31
inside build.gradle file in the flutter_applovin_max/android directory.
And then inside my own pubspec.yaml file I replaced:
flutter_applovin_max: ^2.1.1
with:
flutter_applovin_max:
path: ./flutter_applovin_max
The path:
points to where you pasted the flutter_applovin_max content.
But I don't know if this is Okay to upload to the Play Store!!