ko2ic / image_downloader

Flutter plugin that downloads images and movies on the Internet and saves to Photo Library on iOS or specified directory on Android.
https://pub.dartlang.org/packages/image_downloader#-readme-tab-
MIT License
92 stars 116 forks source link

Execution failed for task ':image_downloader:compileDebugKotlin'. #38

Closed harpreetsi9h closed 4 years ago

harpreetsi9h commented 5 years ago

I have defined this in pubspec.yaml image_downloader: ^0.16.2 when i run my project this error comes everytime:

BUILD FAILED in 15s Finished with error: Gradle task assembleDebug failed with exit code 1

ohjs88 commented 5 years ago

Modify build.gradle file as shown below.

    //ext.kotlin_version = '1.2.71'
    ext.kotlin_version = '1.3.21'
ko2ic commented 5 years ago

@harpreetsi9h I don't know that information alone. How about running with the following options as described in the error message? --stacktrace --info --scan

Also, as @ohjs88 says, an error will occur if the kotlin version is old.

For reference, it works fine in the sample and my project.

ko2ic commented 4 years ago

This can be solved by increasing the Kotlin version, so close it.

Paradox2405 commented 2 years ago

My ext.kotlin version was 1.7.31 and i had to downgrade to 1.5.31 in order for the plugin to work. More info> https://github.com/ko2ic/image_downloader/wiki#compilation-error-in-kotlin-random

mszakacz commented 1 year ago

image_downloader is not maintained for over 20 months. It uses the old ext.kotlin version (1.5.31).

In my case I need the latest ext.kotlin version so I cannot use this package.