1.bintrayUpload: Could not find publication: release
原因:bintray-release0.5.0使用的Gradle版本必須在3.4以上潘明。如果您需要使用Gradle 3.3及更低版本行剂,請使用之前的版本
解決方法:
-
apply plugin: 'com.novoda.bintray-release'
這句代碼必須在apply plugin: 'com.android.library'
下面 -
classpath 'com.android.tools.build:gradle:2.3.0'
中的版本必須在2.3.0以上 - 檢查項目gradle目錄下的gradle-wrapper.jar和gradle-wrapper.properties文件,看gradle版本是否正確
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-3.4.1-all.zip //這里必須是3.4.1以上
org.gradle.parallel=true
org.gradle.daemon=true