2016-02-26 53 views
0

我试着去建立一个maven库,基本上我创建了一个新的项目,并包裹相关的文件作为一个模块,但是当我尝试调用命令gradlew安装包R不存在

gradlew install 

我一直收到此错误: enter image description here

好像有一些错误创造某种原因一个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' 

尝试了小时后,解决此我自己,我想我会在这里流行这件事,如果我结束了我自己的排序这一点,我也将更新

回答

0

回答我自己的问题,最后我去除了抛出错误的最终引用,我认为它与R包有关的应该保持动态,所以它不能在外部库中声明为最终的。