I published the library on bintray.com and jCenter using this instruction:

http://habrahabr.ru/post/266801

enter image description here

Everything successfully loaded and published, but when the Gradle library is connected, it gives an error:

enter image description here

What to do?

  • Show build.gradle, which is for the application exactly. - Alexander
  • try to use not 1.0.1, but 1.0.2 - if you look closely at the field where you chose Gradle , then it says compile 'com.github.imangazalievm: formvalidator: 1.0.2' - Silento
  • I used both 1.0.1 and 1.0.2, it does not work. Version 1.0.2 I downloaded today, thinking that this way I will solve the problem. - user5483163

1 answer 1

In the application level build.gradle file - did you just add the repository in which your library is located? For example:

 buildscript { repositories { mavenCentral() maven { url 'https://maven.fabric.io/public' } maven { url 'URL РЕПОЗИТОРИЯ ПРИЛОЖЕНИЯ'} } ... 
  • Well, you don’t need to add it, I linked the jCenter library - user5483163