bintray

No service of type Factory available in ProjectScopeServices

你。 提交于 2019-11-27 17:33:28
apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray' // load properties Properties properties = new Properties() File localPropertiesFile = project.file("local.properties"); if(localPropertiesFile.exists()){ properties.load(localPropertiesFile.newDataInputStream()) } File projectPropertiesFile = project.file("project.properties"); if(projectPropertiesFile.exists()){ properties.load(projectPropertiesFile.newDataInputStream()) } //read properties def projectName = properties.getProperty("project.name") def projectGroupId = properties.getProperty("project.groupId")

Could not determine java version from '9.0.1'

人盡茶涼 提交于 2019-11-27 14:16:03
Trying upload project to bintray and just get error: Could not determine java version from '9.0.1'. I read that it's grade bug and it fixed in upper versions, I tried change gradle version to 4.2.1 , but get another error: Gradle sync failed: No such property: FOR_RUNTIME for class: org.gradle.api.attributes.Usage Consult IDE log for more details (Help | Show Log) (571ms) Gradle properties: distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-4.2.1-all.zip

How to use the latest gradle version in Android Studio

两盒软妹~` 提交于 2019-11-27 12:50:13
问题 I've just noticed Gradle has released version 2.12 and according to the release notes the scripts should compile up to 20% faster. I'd like to upgrade to that version in Android Studio. I'm using v1.5.1 and in the settings I've selected the "Use default gradle wrapper" option, which means that instead of using a local gradle install for every project, a specific gradle version will be used for each project. The version used is the one defined in the build.gradle file. Example: buildscript {

No service of type Factory available in ProjectScopeServices

末鹿安然 提交于 2019-11-27 04:12:51
问题 apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray' // load properties Properties properties = new Properties() File localPropertiesFile = project.file("local.properties"); if(localPropertiesFile.exists()){ properties.load(localPropertiesFile.newDataInputStream()) } File projectPropertiesFile = project.file("project.properties"); if(projectPropertiesFile.exists()){ properties.load(projectPropertiesFile.newDataInputStream()) } //read properties def projectName

Could not determine java version from '9.0.1'

女生的网名这么多〃 提交于 2019-11-26 16:38:50
问题 Trying upload project to bintray and just get error: Could not determine java version from '9.0.1'. I read that it's grade bug and it fixed in upper versions, I tried change gradle version to 4.2.1 , but get another error: Gradle sync failed: No such property: FOR_RUNTIME for class: org.gradle.api.attributes.Usage Consult IDE log for more details (Help | Show Log) (571ms) Gradle properties: distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME