apply plugin: 'com.android.library' android { compileSdkVersion 25 buildToolsVersion '25.0.2' defaultConfig { minSdkVersion 15 targetSdkVersion 25 versionCode 1 versionName "1.0" } buildTypes { W5ADebug {} W5ARelease {} Aigo1071Debug {} Aigo1071Release {} UnisocS6688Debug {} UnisocS6688Release {} teclast8183Debug {} teclast8183Release {} G10PDebug {} G10PRelease {} U807UserDebug {} U807Debug {} U807Release {} iPlay50SEDebug {} iPlay50SERelease {} debug {} release {} } lintOptions { abortOnError false } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'androidx.appcompat:appcompat:1.3.1' } //// 上传 jcenter 的配置 //apply plugin: 'com.novoda.bintray-release'//添加 // ////添加 //publish { // userOrg = 'jacktuotuo'//用户名 // repoName = 'maven' //仓库的名字 // groupId = 'com.jacktuotuo.customview'//jcenter上的路径 // artifactId = 'verificationcodeview'//项目名称 // publishVersion = '1.0.5'//版本号 // desc = 'a custom View of the square verification code input box'//描述 // website = 'http://blog.csdn.net/qq_33553515'//个人网站 //} // gradle clean build bintrayUpload -PbintrayUser=jacktuotuo -PbintrayKey=key -PdryRun=false // 最终引用路径 compile 'com.jacktuotuo.customview:verificationcodeview:1.0.0