我创建了一个Android库,它使用
爪哇诗人
现在我正试图通过bintray将我的项目放到网上。项目已正确上载,但当我将其包含在新项目中并构建项目时,我收到以下消息:
错误:服务配置文件错误,或在
构造处理器对象:javax。注释。处理。处理器:
com/squareup/javapoet/TypeName
我想这是因为我管理依赖关系的方式。。。编译时间,运行时的东西。。。
这是
建筑格拉德尔:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':filter-annotation')
api 'com.squareup:javapoet:1.9.0'
compile 'com.google.code.gson:gson:2.8.1'
compile 'com.google.auto.service:auto-service:1.0-rc3'
}
这是
建筑。格拉德尔:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.code.gson:gson:2.8.1'
}
这就是我如何将库包含在空项目中的方法:
// build.gradle project
repositories {
maven{
url 'https://dl.bintray.com/omaflak/maven'
}
}
// build.gradle module
dependencies {
compile 'me.aflak.libraries:filter-annotation:1.0'
annotationProcessor 'me.aflak.libraries:filter-processor:1.0'
}