[英]gradlew install package R does not exist
Im trying to build a maven library, basically i created a new project and wrapped the relevant files as a module, but when im trying to call the command 我试图建立一个Maven库,基本上我创建了一个新项目并将相关文件包装为模块,但是当我试图调用命令时
gradlew install
i keep getting this error: 我不断收到此错误:
seems like there are some errors creating a javadoc for some reason, i've triple checked the doc and removed any special attributes from it, its literally just a plain text at this point so i have reason to believe its something to do with the other errors i see in the output saying package R does not exist. 似乎由于某种原因创建Javadoc时出现一些错误,我已经三遍检查了该文档并从中删除了任何特殊属性,这时它的字面意思仅仅是纯文本,因此我有理由相信其与其他内容有关我在输出中看到的错误说包R不存在。
I'm using Java 1.8 based on the guide in this page : http://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en 我正在根据此页面上的指南使用Java 1.8: http : //inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/zh-CN
i have no idea what im doing wrong here. 我不知道我在这里做错了什么。 this whole process is somewhat random.
这整个过程有些随机。
here is my module's gradle.build file: 这是我模块的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://cohen_liran@bitbucket.org/cohen_liran/design-toolbox'
gitUrl = 'https://cohen_liran@bitbucket.org/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'
After trying for hours to resolve this myself i thought i will pop this up here, i will also update if i end up sorting this on my own 在尝试了几个小时自己解决这个问题之后,我想我会在这里弹出它,如果最终我自己将其排序,我也会进行更新。
回答我自己的问题,最后我删除了引发错误的最终引用,我认为与R包有关的事情应该保持动态,因此不能在外部库中声明为final
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.