CarnegieTechnologies / gallery_saver

Flutter plugin that saves images and videos to devices gallery
Apache License 2.0
157 stars 315 forks source link

resource android:attr/lStar not found #222

Open phluidaungyezaw opened 1 month ago

phluidaungyezaw commented 1 month ago

[✓] 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.

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 commented 1 month ago

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

ChristopherLinnett commented 3 weeks ago

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 commented 3 weeks ago

Thanks a lot . It worked...