flutter_downloader icon indicating copy to clipboard operation
flutter_downloader copied to clipboard

A problem occurred evaluating project ':flutter_downloader'.

Open hrithikM31 opened this issue 2 years ago • 5 comments
trafficstars

Android issue:

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file 'C:\Users\Dell\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_downloader-1.10.4\android\build.gradle' line: 30

* What went wrong:
A problem occurred evaluating project ':flutter_downloader'.
> No signature of method: build_eilr0qkxli952v8kt4w3yzx7i.android() is applicable for argument types: (build_eilr0qkxli952v8kt4w3yzx7i$_run_closure2) values: [build_eilr0qkxli952v8kt4w3yzx7i$_run_closure2@2b6728e3]

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

2: Task failed with an exception.
-----------
* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 463

* What went wrong:
A problem occurred configuring project ':flutter_downloader'.
> Failed to notify project evaluation listener.
   > Cannot invoke method substring() on null object
   > compileSdkVersion is not specified. Please add it to build.gradle

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

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

BUILD FAILED in 17s
Exception: Gradle task assembleDebug failed with exit code 1

hrithikM31 avatar May 31 '23 10:05 hrithikM31

@hrithikM31 did you find any workaround for this issue?

kartik-techtonic avatar Jun 05 '23 11:06 kartik-techtonic

following

AFRIDI-2020 avatar Jun 07 '23 08:06 AFRIDI-2020

I have removed this package and started using Dio for the same purpose.

On Wed, Jun 7, 2023, 2:18 PM AFRIDI-2020 @.***> wrote:

following

— Reply to this email directly, view it on GitHub https://github.com/fluttercommunity/flutter_downloader/issues/865#issuecomment-1580224112, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYQGMJASSNMAE7HE3R76NTLXKA54DANCNFSM6AAAAAAYVIJEDQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

kartik-techtonic avatar Jun 07 '23 09:06 kartik-techtonic

Hi, Sorry for the late reply, was stuck somewhere. I resolved the issue by

  • cleaning the flutter cache
  • flutter clean -In pubsec.yaml -> flutter_downloader: 1.8.4

and ran it. working for now, but definitely not a permanent solution.

hrithikM31 avatar Jun 07 '23 12:06 hrithikM31

+1

bshankar-coder avatar Jun 08 '23 15:06 bshankar-coder