picasso README

The project's README from github.com/square/picasso. As one markdown file: README.md.

Picasso

Attention: This library is deprecated. Please use alternatives like Coil for future projects, and start planning to migrate existing projects, especially if they rely on Compose UI. Existing versions will continue to function, but no new work is planned. While some changes may land in the repo as we support internal legacy usage and migration, there will be no more public releases to Maven Central.

Thank you to all who used and/or contributed to Picasso over its decade of image loading.


A powerful image downloading and caching library for Android

For more information please see the website

Download

Download the latest AAR from Maven Central or grab via Gradle:

implementation 'com.squareup.picasso:picasso:2.8'

or Maven:

<dependency>
  <groupId>com.squareup.picasso</groupId>
  <artifactId>picasso</artifactId>
  <version>2.8</version>
</dependency>

Snapshots of the development version are available in Sonatype's snapshots repository.

Picasso requires at minimum Java 8 and API 21.

ProGuard

If you are using ProGuard you might need to add OkHttp's rules: https://github.com/square/okhttp/#r8--proguard

License

Copyright 2013 Square, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

picasso (square/picasso)

Searching Database…

18.8K ·GitHub
这是什么?Picasso 是一个适用于 Android 的图片下载与缓存库,由 Square 开发,用于简化将网络、资源或磁盘中的图片加载到视图中的过程。
它是库还是独立应用?它是一个库,通过 Gradle 或 Maven 添加到 Android 应用中,而不是独立的应用程序。
我该如何把它添加到 Android 项目中?可以从 Maven Central 下载最新的 AAR,或者将其添加为 Gradle 或 Maven 依赖。
它至少需要哪个版本的 Java 和 Android API?Picasso 至少需要 Java 8 和 Android API 级别 21。
这个库还在积极开发吗?不了。Picasso 已被弃用,今后不会再向 Maven Central 发布公开版本,作者建议迁移到 Coil 等替代方案,尤其是 Compose UI 项目。
如果我的应用已经在使用 Picasso,会不会出问题?不会,现有版本仍可继续使用,但你不应再围绕它规划新功能开发或发布。
它只能在 Android 上使用吗?是的,它是专门针对 Android 的库。
使用 ProGuard 时需要做什么特别的配置吗?需要。如果你使用 ProGuard,可能需要添加 OkHttp 的 ProGuard 规则,因为 Picasso 底层依赖 OkHttp。
为什么是正式弃用,而不是悄悄停止维护?Square 在 README 中明确宣布了弃用,以引导新项目和现有项目转向仍在积极维护的替代方案,例如 Coil,尤其是基于 Compose 的界面。
今天还应该用 Picasso 开始新项目吗?不应该。鉴于明确的弃用通知,新项目应改用仍在积极维护的替代方案,例如 Coil。
Creator
square
Size
5.6 MB
Stars
18.8K
Age
13y
Commits · 90 Days