Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling the Fresco source code failed. #2727

Open
yezhaobin opened this issue May 6, 2023 · 0 comments
Open

Compiling the Fresco source code failed. #2727

yezhaobin opened this issue May 6, 2023 · 0 comments

Comments

@yezhaobin
Copy link

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.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant