fresco icon indicating copy to clipboard operation
fresco copied to clipboard

Compiling the Fresco source code failed.

Open yezhaobin opened this issue 1 year ago • 0 comments

When I execute "./gradlew build" on my Mac, it throws the following error,

fresco-build/fresco-3.0.0/imagepipeline-base/src/main/java/com/facebook/imagepipeline/cache/AnimatedCache.kt:88: Error: Call requires API level 24 (current min is 14): java.lang.Iterable#forEach [NewApi] frames.values.forEach { it.close() } ~~~~~~~

The full lint text report is located at: /Users/steven/Documents/fresco-build/fresco-3.0.0/imagepipeline-base/build/intermediates/lint_intermediate_text_report/debug/lint-results-debug.txt

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':imagepipeline-base:lintDebug'.

Lint found errors in the project; aborting build.

Fix the issues identified by lint, or create a baseline to see only new errors:

android {
    lint {
        baseline = file("lint-baseline.xml")
    }
}

For more details, see https://developer.android.com/studio/write/lint#snapshot

  • 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5/userguide/command_line_interface.html#sec:command_line_warnings

Execution optimizations have been disabled for 3 invalid unit(s) of work during this build to ensure correctness. Please consult deprecation warnings for more details.

BUILD FAILED in 5m 1116 actionable tasks: 93 executed, 1023 up-to-date ➜ fresco-3.0.0

yezhaobin avatar May 06 '23 01:05 yezhaobin