fluttercandies / flutter_image_compress

flutter image compress
MIT License
633 stars 214 forks source link

[Bug report] flutter_image_compress_common: 1.0.2 #251

Closed rmasarovic closed 1 year ago

rmasarovic commented 1 year ago

Version

2.0.4

Platforms

Android

Device Model

android

flutter info

[√] Flutter (Channel stable, 3.10.6, on Microsoft Windows [Version 10.0.22621.1992], locale en-US)
    • Flutter version 3.10.6 on channel stable at D:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f468f3366c (8 days ago), 2023-07-12 15:19:05 -0700
    • Engine revision cdbeda788a
    • Dart version 3.0.6
    • DevTools version 2.23.1

How to reproduce?

build when version lib i get error is not possible build apk with new version lib

temp workround for me

dependency_overrides: flutter_image_compress_common: 1.0.0

Logs

flutter_image_compress_common-1.0.2\android\src\main\kotlin\com\fluttercandies\flutter_image_compress\core\CompressFileHandler.kt: (14, 7): Redeclaration: CompressFileHandler

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flutter_image_compress_common:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

* 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.

Example code (optional)

No response

Contact

No response

bradintheusa commented 1 year ago

I'm using this workaround for now

dependency_overrides:
  flutter_image_compress_common: 1.0.0
AlexV525 commented 1 year ago

Run clean before build.

bradintheusa commented 1 year ago

Can confirm that worked.