A few days ago wrote an Android library project, to support both AAR and jar two ways, here to share their own written gradle automatically built script
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/442955-d3f4be439b744f32.png?imageView2/ 2/w/1240/q/100 "class=" Imagebubble-image "style=" height:auto;vertical-align:middle;border:0px; "alt="/>
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/442955-c598f945ecd4922c.png?imageView2/ 2/w/1240/q/100 "class=" Imagebubble-image "style=" height:auto;vertical-align:middle;border:0px; "alt="/>
command line execution./gradlew Makejar build jar package under build/intermediates/libs/
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/442955-86156ec64f28624d.png?imageView2/ 2/w/1240/q/100 "class=" Imagebubble-image "style=" height:auto;vertical-align:middle;border:0px; "alt="/>
Executes at the command line./gradlew Uploadarchives generating AAR in gradle.properties in the specified Aar.deploypath directory
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/442955-fd7692b08400750b.png?imageView2/ 2/w/1240/q/100 "class=" Imagebubble-image "style=" height:auto;vertical-align:middle;border:0px; "alt="/>
This article is from the "Program Ape Camp" blog, please be sure to keep this source http://10243906.blog.51cto.com/10233906/1651629
Android Studio exports jar packages and confuses and AAR