Никаких зависимостей для Picasso в Android Project - PullRequest
0 голосов
/ 24 января 2019

Я хотел увидеть все зависимости в моем проекте Android, но я наткнулся на библиотеку Picasso, которая не "раскрывает" свои зависимости.

Я попробовал типичную команду Gradle среди нескольких других

./gradlew :app:dependencies

Результат всегда:

+--- com.squareup.picasso:picasso:2.5.2
+--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.11
|    \--- org.jetbrains.kotlin:kotlin-stdlib:1.3.11
...

Кто-нибудь знает, почему в списке нет Picasso зависимостей?

Ответы [ 2 ]

0 голосов
/ 25 января 2019

Это потому, что он не имеет каких-либо зависимостей "компиляции / реализации".

Вы можете проверить pom.xml для Пикассо:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>com.squareup.picasso</groupId>
    <artifactId>picasso-parent</artifactId>
    <version>2.5.2</version>
    <relativePath>../pom.xml</relativePath>
  </parent>

  <artifactId>picasso</artifactId>
  <name>Picasso</name>

  <dependencies>
    <dependency>
      <groupId>com.squareup.okhttp</groupId>
      <artifactId>okhttp</artifactId>
      <optional>true</optional>
    </dependency>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.easytesting</groupId>
      <artifactId>fest-assert-core</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.squareup</groupId>
      <artifactId>fest-android</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.robolectric</groupId>
      <artifactId>robolectric</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.squareup.okhttp</groupId>
      <artifactId>mockwebserver</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>com.intellij</groupId>
      <artifactId>annotations</artifactId>
      <version>9.0.4</version>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>com.google.android</groupId>
      <artifactId>android</artifactId>
      <scope>provided</scope>
    </dependency>
  </dependencies>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>emma-maven-plugin</artifactId>
        <version>1.0-alpha-3</version>
      </plugin>
    </plugins>
  </reporting>
</project>

Источник: https://search.maven.org/artifact/com.squareup.picasso/picasso/2.5.2/jar.

0 голосов
/ 24 января 2019

у вас должно быть исключено написанное в вашем выпуске с зависимостями Пикассо.также проверьте, если тип implementation

...