Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource android:attr/lStar not found #222

Open
phluidaungyezaw opened this issue Aug 9, 2024 · 5 comments
Open

resource android:attr/lStar not found #222

phluidaungyezaw opened this issue Aug 9, 2024 · 5 comments

Comments

@phluidaungyezaw
Copy link

phluidaungyezaw commented Aug 9, 2024

[✓] Flutter (Channel stable, 3.24.0, on macOS 14.6.1 23G93 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.92.1)
[✓] Connected device (4 available)
[✓] Network resources

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':gallery_saver:verifyReleaseResources'.

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:/Users/*****/build/gallery_saver/intermediates/merged_res/release/values/values.xml:211: AAPT: error: resource android:attr/lStar not found.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

BUILD FAILED in 1m 34s
Running Gradle task 'assembleRelease'... 95.2s

┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │
│ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then update the │
│ version number of the plugin with id "org.jetbrains.kotlin.android" in the plugins block of │
│ /Users//android/settings.gradle. │
│ │
│ Alternatively (if your project was created before Flutter 3.19), update │
│ /Users/
/android/build.gradle │
│ ext.kotlin_version = '' │
└────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Gradle task assembleRelease failed with exit code 1

@Maksaline
Copy link

Facing the same problem . And I'm sure that the problem is with the package . Without this package, the build completes perfectly...

@ChristopherLinnett
Copy link

The issue is this package is very out of date. As a quick solution, you can go to where your dependency is hosted.
/.pub-cache/hosted/pub.dev/gallery_saver-2.3.2/android/build.gradle

update the compileSdkVersion to 34, save it and it should work again. It may be a good idea to change for another package though as this one hasn't been worked on in 3 years.

@Maksaline
Copy link

Thanks a lot . It worked...

@fabienlierville
Copy link

The issue is this package is very out of date. As a quick solution, you can go to where your dependency is hosted. /.pub-cache/hosted/pub.dev/gallery_saver-2.3.2/android/build.gradle

update the compileSdkVersion to 34, save it and it should work again. It may be a good idea to change for another package though as this one hasn't been worked on in 3 years.

Hello, What package do you recommend as a replacement?

@Maksaline
Copy link

You can use this(bug fixed version of this package) as a replacement:

https://github.com/Maksaline/Shadhinota-Canvas/tree/master/lib/packages/gallery_saver-2.3.2

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

No branches or pull requests

4 participants