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 122 forks source link

Error while compiling (Android) #1

Closed jesusrp98 closed 5 years ago

jesusrp98 commented 5 years ago

When I try to run or compile the app, an error gets throw. Only on Android, on iOS works with. Ran flutter clean and didn't improve anything. Here's the error:

* Error running Gradle:
ProcessException: Process "/home/jesus/Documents/space-curiosity/android/gradlew" exited
abnormally:
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':image_downloader'.
> Failed to notify project evaluation listener.
   > java.lang.AbstractMethodError (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get
more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s
  Command: /home/jesus/Documents/space-curiosity/android/gradlew app:properties

Please review your Gradle project setup in the android/ folder.

Thank you.

jesusrp98 commented 5 years ago

Updating Gradle, Kotlin plugin & Android SDK fixed the problem.