在我的android应用中:
在app / build.gradle中:
dependencies {
annotationProcessor "org.androidannotations:androidannotations:$AAVersion"
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation project(':fointeraction')
implementation project(':reports')
implementation project(':transport')
在模块运输中 transport / build.gradle:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
api 'com.squareup.okhttp3:logging-interceptor:3.8.0'
api "com.squareup.retrofit2:converter-gson:$RETROFIT_VERSION"
api "com.squareup.retrofit2:retrofit:$RETROFIT_VERSION"
implementation project(':fointeraction')
模块fointeraction
使用模块transport
,反之亦然
在模块交互中
fointeraction / build.gradle:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
api 'com.google.code.gson:gson:2.8.5'
api 'commons-io:commons-io:2.6' // "api" configurations will be transitively exposed to consumers of the library
implementation 'commons-codec:commons-codec:1.12'
implementation 'org.apache.commons:commons-lang3:3.8.1'
implementation 'org.apache.httpcomponents:httpclient:4.5.8'
implementation project(':transport')
尝试构建时出现错误:
Circular dependency between the following tasks:
:fointeraction:compileDebugAidl
\--- :transport:compileDebugAidl
\--- :fointeraction:compileDebugAidl (*)
(*) - details omitted (listed previously)
答案 0 :(得分:1)
您的互动包括运输,而互动也包括运输(以及持续不断地)
答案 1 :(得分:0)
我建议一种解决方案,但不知道可能有帮助。请从implementation 'com.android.support:appcompat-v7:28.0.0'
文件中删除fointeraction/build.gradle
并使用
改为implementation 'androidx.appcompat:appcompat:1.0.2'
。最好在整个项目中使用AndroidX库,而不要使用单独的库。