781flyingdutchman / background_downloader

Flutter plugin for file downloads and uploads
Other
123 stars 55 forks source link

Gradle build errors with 8.3 and 8.4 #280

Closed Chaphasilor closed 2 months ago

Chaphasilor commented 2 months ago

Describe the bug

Trying to build an APK with recent versions of background_downloader doesn't seem to work for me. The two minor versions (8.3 and 8.4) give me two separate failures.

To Reproduce Steps to reproduce the behavior:

  1. Have background_downloader 8.3/8.4 as a dependency
  2. Build the project for Android (on Windows)

Expected behavior Build should work :)

Logs

(VS Code's debug console didn't let me copy all lines, but it's more of just the same above. Let me know if the additional lines would help)

8.4: 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. * Get more help at https://help.gradle.org BUILD FAILED in 2m 4s Error: Gradle task assembleDebug failed with exit code 1 ```
8.3: 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. * Get more help at https://help.gradle.org BUILD FAILED in 1m 59s Error: Gradle task assembleDebug failed with exit code 1 ```
`flutter doctor -v`

Code This was in Finamp, where I believe you're somewhat familiar of our usage. However, it seems like the issue is in native code on your side.

Additional context

Pinning the version to 8.2 works well.

781flyingdutchman commented 2 months ago

This looks like a build cache problem. Have you tried flutter clean and/or clearing the VS Code cache before building with the newer version?

Chaphasilor commented 2 months ago

Ahh you were absolutely right. Sorry for not trying that earlier!