Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Error on Flutter 3 #44

Open
davidgalarza opened this issue May 13, 2022 · 4 comments
Open

Error on Flutter 3 #44

davidgalarza opened this issue May 13, 2022 · 4 comments

Comments

@davidgalarza
Copy link

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!

@ahammamlho
Copy link

I have the same problem

@hakamdev
Copy link

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
Copy link

hakamdev commented May 19, 2022

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

@thomasmso
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants