Android gradle无法解决。来自artifactory的aar

Android gradle无法解决。来自artifactory的aar,android,gradle,dependencies,aar,Android,Gradle,Dependencies,Aar,我有一个使用我自己的.aar库的项目,该库上传到artifactory上 .pom文件似乎是正确的,正如我在maven central上看到的其他.aar库一样。.pom如下所示: <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"

我有一个使用我自己的.aar库的项目,该库上传到artifactory上

.pom文件似乎是正确的,正如我在maven central上看到的其他.aar库一样。.pom如下所示:

    <?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>io.modum</groupId>
  <artifactId>sweetblueservice</artifactId>
  <version>1.15</version>
  <packaging>aar</packaging>
  <dependencies>
    <dependency>
      <groupId>com.android.support</groupId>
      <artifactId>appcompat-v7</artifactId>
      <version>27.1.1</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>com.android.support.constraint</groupId>
      <artifactId>constraint-layout</artifactId>
      <version>1.1.3</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>net.sourceforge.streamsupport</groupId>
      <artifactId>android-retrofuture</artifactId>
      <version>1.6.3</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>com.jakewharton.timber</groupId>
      <artifactId>timber</artifactId>
      <version>4.7.1</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>joda-time</groupId>
      <artifactId>joda-time</artifactId>
      <version>2.10</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>io.modum</groupId>
      <artifactId>logger-utils</artifactId>
      <version>0.1.0</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>io.modum</groupId>
      <artifactId>sweetblue</artifactId>
      <version>2.52.16</version>
      <scope>runtime</scope>
    </dependency>
  </dependencies>
</project>
implementation "io.modum:sweetblueservice:1.15"
但不知何故,当库应该从Artifactory解析时,这不起作用:

    > Could not find sweetblueservice.jar (io.modum:sweetblueservice:1.15).
  Searched in the following locations:
      https://modum.jfrog.io/modum/gradle-dev/io/modum/sweetblueservice/1.15/sweetblueservice-1.15.jar

不知何故,您是否尝试了扩展属性?实现“io.modum:sweetblueservice:1。15@aar例如,是,即使“transitive”设置为true。它不起作用,依赖关系没有得到解决。它还抱怨没有找到jar而不是aar吗?我也一样,总是在寻找jar而不是aar。这方面有更新吗?