If you develop a library and want to experience a line of code being used elegantly, you need to publish the project on JCenter. The whole release process, there are many good articles on the web, you can refer to these two articles, Android Studio release project to Jcenter and Android project package to Jcenter pit

A pit




Snapshot 2016-10-02 10.33.00.png

Lint checking is enabled by default. Lint checks for syntax errors in projects and cannot continue if it fails. Just add the following code to build.gradle in the Module:

 android {
    lintOptions {
        abortOnError false
    }
}Copy the code

Pit 2




Screenshot 2016-10-02 10.37.33.png

Javadoc error, add the following code to Project build.gradle:




Screenshot 2016-10-02 11.08.43.png

The values of the parentheses are filled in according to the error prompt, and I have the red position error:




Snapshot 2016-10-02 11.05.27.png

Three pit




Snapshot 2016-10-02 10.42.03.png

This is due to inconsistent JDK versions. Download the corresponding JDK version according to the following version mappings:




Screenshot 2016-10-02 21.58.05.png

Pit four




Snapshot 2016-10-02 10.48.42.png

This error does not find the library name in Bintray that you marked in red in the image below build.gradle.




Paste_Image.png

Pit five

The last step is stuck at 97%. Please check if you have proxy enabled. Check if there is proxy information in your gradle.properties file and delete it