0

I have an uploaded package on my Bintray repository as you can see here.

  • Here is my library module build.gradle file
  • Here is my deploy.gradle file
  • Here is my deploy.properties file

The problem is I can't resolve the dependency with a standard compile 'com.frlgrd:animated-edit-text:0.3@aar'. My library contains resources, this is why I need @aar suffix.

I get this error when I compile the "test" projet which use the dependency :

Failed to resolve: com.frlgrd:animated-edit-text:0.3

And in this project, I have this root build.gradle file

buildscript {

    repositories {
        google()
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
François Legrand
  • 1,151
  • 1
  • 14
  • 25

2 Answers2

1

On Bintray, in the package page, there is an "Add to jcenter" button. I didn't see it at the beginning but then, I did and I clicked on it and wait for few hours to fix my problem.Add to jcenter button (lost around flashy green elements, it should be more visible according to me)

François Legrand
  • 1,151
  • 1
  • 14
  • 25
0

I can't resolve the dependency with a standar compile 'com.frlgrd:animated-edit-text:0.3@aar'. My library contains resources, this is why I need @aar suffix.

Using an artifact notation (as @aar) means that you want to download only the aar artifact, and no dependencies since the existing module descriptors are ignored.

In your case you doesn't need the aar notation since in the jcenter repo you have only the aar file (it is not related to the resources)

In any case using the @aar notation if you want to download the dependencies, you should add transitive=true.

compile('xxxxxx@aar') {
    transitive = true;
}
Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841