Skip to content

Replace image_gallery_saver with image_gallery_saver_plus to fix Android build error - #18

Merged
krishna3554 merged 1 commit into
mainfrom
codex/fix-gradle-build-configuration-error
May 14, 2026
Merged

krishna3554 merged 1 commit into
mainfrom
codex/fix-gradle-build-configuration-error

Conversation

@krishna3554

Copy link
Copy Markdown
Owner

Motivation

  • The Android Gradle Plugin produced a namespace error for image_gallery_saver-2.0.3; switching to a maintained package avoids the AGP namespace failure and updates the media-saving API.

Description

  • Replace the image_gallery_saver dependency with image_gallery_saver_plus: ^4.0.1 in pubspec.yaml.
  • Update lib/core/utils/media_saver.dart to import package:image_gallery_saver_plus/image_gallery_saver_plus.dart and call ImageGallerySaverPlus.saveImage and ImageGallerySaverPlus.saveFile for photo/video saves.

Testing

  • Verified the substitution with rg "image_gallery_saver" pubspec.yaml lib which shows the new package and updated import (succeeded).
  • Checked for Flutter on the host with flutter --version, which could not run because Flutter is not installed in this environment (automated check failed).
  • Attempted an Android build check with JAVA_HOME=$HOME/.local/share/mise/installs/java/17.0.2 PATH=$JAVA_HOME/bin:$PATH gradle -p android help, which failed because android/local.properties is missing in this checkout (automated build could not complete).

Codex Task

@krishna3554
krishna3554 merged commit 0333c10 into main May 14, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant