Android Studio bug publishing library on jCenter with Bintray

I follow this guide to post an example Android Studio library on Jcenter:

http://crushingcode.co/publish-your-android-library-via-jcenter/

It seems very clear. I created my GitHub repository using this library at this link:

https://github.com/alessandroargentieri/mylibview

I also subscribed to Bintray.com and created a new repository that should contain my library (as described in the lesson above).

To publish a repository to Bintray, I have to create an organization and then create a repository. So this is my data:

Bintray username: alessandroargentieri
organization: alexmawashi
repository: https://bintray.com/alexmawashi/my_android_repository

then in Android Studio, in the gradle file of my library module, I have the following data:

apply plugin: 'com.android.library'

ext {
    bintrayRepo = 'my_android_repository'       //maven
    bintrayName = 'mylibview'   // Has to be same as your library module name

    publishedGroupId = 'mawashi.alex.mylittlelibrary'
    libraryName = 'MyLibView'
    artifact = 'mylibview'     // Has to be same as your library module name

    libraryDescription = 'Android Library to use a custom view'

    // Your github repo link
    siteUrl = 'https://github.com/alessandroargentieri/mylibview'
    gitUrl = 'https://github.com/alessandroargentieri/mylibview.git'
    githubRepository= 'alessandroargentieri/mylibview'

    libraryVersion = '1.0'

    developerId = 'alexmawashi'
    developerName = 'Alessandro Argentieri'
    developerEmail = 'alexmawashi87@gmail.com'

    licenseName = 'The Apache Software License, Version 2.0'
    licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
    allLicenses = ["Apache-2.0"]
}
...
...
apply from: 'https://raw.githubusercontent.com/nisrulz/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nisrulz/JCenter/master/bintrayv1.gradle'

When I use the terminal and write: gradlew clean build install bintrayUpload --stacktrace

After a few minutes, I get this error:

 What went wrong:
Execution failed for task ':mylittlelibrary:bintrayUpload'.
> Could not create package 'alessandroargentieri/my_android_repository/mylibview': HTTP/1.1 404 Not Found [message:Repo 'my_android_repository' was not found]

What am I doing wrong? Thank.

+2
source share
2 answers

gradle.properties bintray.user bintray.apikey( bintray) (. include https://raw.githubusercontent.com/nisrulz/JCenter/master/bintrayv1.gradle)

+3

Source: https://habr.com/ru/post/1662374/


All Articles