flutter_applovin_max icon indicating copy to clipboard operation
flutter_applovin_max copied to clipboard

Error on Flutter 3

Open davidgalarza opened this issue 2 years ago • 4 comments

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!

davidgalarza avatar May 13 '22 20:05 davidgalarza

I have the same problem

ahammamlho avatar May 16 '22 19:05 ahammamlho

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.

hakamdev avatar May 18 '22 20:05 hakamdev

Screen Shot 2022-05-20 at 00 20 13 Screen Shot 2022-05-20 at 00 20 26

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!!

hakamdev avatar May 19 '22 23:05 hakamdev

Hey there - AppLovin just released an official plugin. Please feel free to check it out here: (docs, repo).

Thank you @ioridev for developing this stop-gap solution, we really appreciate it.

thomasmso avatar Jun 22 '22 00:06 thomasmso