hui-z / image_gallery_saver

flutter中用于保存图片到相册的Plugin
MIT License
278 stars 395 forks source link

Uncompatible with flutter & dart sdk #312

Open wasim353 opened 2 months ago

wasim353 commented 2 months ago

when use this package not create build show error mention below Screenshot 2024-08-20 151247

Usamakabir07 commented 2 months ago

Hi @wasim353 I facing the same issue did you find any solution?

wasim353 commented 2 months ago

i have replace the image gallery saver package with gallery saver package. it's working

On Fri, 23 Aug 2024 at 17:55, Muhammad Usama Kabir @.***> wrote:

Hi @wasim353 https://github.com/wasim353 I facing the same issue did you find any solution?

— Reply to this email directly, view it on GitHub https://github.com/hui-z/image_gallery_saver/issues/312#issuecomment-2307038126, or unsubscribe https://github.com/notifications/unsubscribe-auth/BKLKQ6QU7QTULNRQIIA4VJLZS4WNVAVCNFSM6AAAAABM5JDIL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBXGAZTQMJSGY . You are receiving this because you were mentioned.Message ID: @.***>

pixnbit commented 2 months ago

Oh... this library was introduced as a transitive dependency...

Kaizodo commented 2 months ago

same issue

Kaizodo commented 2 months ago

i think this repo is dead there are no updates from past 1 year

wasim353 commented 2 months ago

what solved this for me, adding some scripts to the subprojects section in android/build.gradle:

allprojects { repositories { google() mavenCentral() } }

rootProject.buildDir = "../build" subprojects { // fix for verifyReleaseResources // ============ afterEvaluate { project -> if (project.plugins.hasPlugin("com.android.application") || project.plugins.hasPlugin("com.android.library")) { project.android { compileSdkVersion 34 buildToolsVersion "34.0.0" } } if (project.hasProperty("android")) { project.android { if (namespace == null) { namespace project.group } } } } // ============ project.buildDir = "${rootProject.buildDir}/${project.name}" project.evaluationDependsOn(":app") }

tasks.register("clean", Delete) { delete rootProject.buildDir }

On Tue, 27 Aug 2024 at 10:43, Kaizodo Technologies Pvt Ltd < @.***> wrote:

same issue

— Reply to this email directly, view it on GitHub https://github.com/hui-z/image_gallery_saver/issues/312#issuecomment-2311617767, or unsubscribe https://github.com/notifications/unsubscribe-auth/BKLKQ6SAB3U7PPFLSAQVX5TZTQGZZAVCNFSM6AAAAABM5JDIL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJRGYYTONZWG4 . You are receiving this because you were mentioned.Message ID: @.***>

vongoethe commented 1 month ago

what solved this for me, adding some scripts to the subprojects section in android/build.gradle: allprojects { repositories { google() mavenCentral() } } rootProject.buildDir = "../build" subprojects { // fix for verifyReleaseResources // ============ afterEvaluate { project -> if (project.plugins.hasPlugin("com.android.application") || project.plugins.hasPlugin("com.android.library")) { project.android { compileSdkVersion 34 buildToolsVersion "34.0.0" } } if (project.hasProperty("android")) { project.android { if (namespace == null) { namespace project.group } } } } // ============ project.buildDir = "${rootProject.buildDir}/${project.name}" project.evaluationDependsOn(":app") } tasks.register("clean", Delete) { delete rootProject.buildDir } On Tue, 27 Aug 2024 at 10:43, Kaizodo Technologies Pvt Ltd < @.> wrote: same issue — Reply to this email directly, view it on GitHub <#312 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BKLKQ6SAB3U7PPFLSAQVX5TZTQGZZAVCNFSM6AAAAABM5JDIL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJRGYYTONZWG4 . You are receiving this because you were mentioned.Message ID: @.>

This works like a charm. Thank you!

knottx commented 1 month ago

Try this #295