0
我試着去建立一個maven庫,基本上我創建了一個新的項目,幷包裹相關的文件作爲一個模塊,但是當我嘗試調用命令gradlew安裝包R不存在
gradlew install
好像有一些錯誤創造某種原因一個javadoc,我已經三重檢查的doc和在這一點從它刪除任何特殊屬性,它真的只是一個純文本,所以我有有理由相信它與我在包裝R輸出中看到的其他錯誤有關 不存在。
我根據該頁面中的指南使用Java 1.8:http://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en
我不知道什麼即時做錯了什麼。整個過程有點隨意。
這裏是我的模塊的gradle.build文件:
apply plugin: 'com.android.library'
ext {
bintrayRepo = 'maven'
bintrayName = 'designtoolbox-styleable-dialog'
publishedGroupId = 'com.lirancohen.designtoolbox'
libraryName = 'designtoolbox-styleable-dialog'
artifact = 'designtoolbox-styleable-dialog'
libraryDescription = 'A fully customize-able dialog for android'
siteUrl = 'https://[email protected]/cohen_liran/design-toolbox'
gitUrl = 'https://[email protected]/cohen_liran/design-toolbox.git'
libraryVersion = '0.0.1'
developerId = 'lirancr'
developerName = '[MY NAME]'
developerEmail = '[MY EMAIL]'
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
}
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
嘗試了小時後,解決此我自己,我想我會在這裏流行這件事,如果我結束了我自己的排序這一點,我也將更新