使用android studio设置2个模块的依赖项时出现以下错误
以下任务之间的循环依赖:
item.EmployeeDetails = item.EmployeeDetails
.sort((a: IEmployeeDetails, b: IEmployeeDetails) => {
if (a.employeeType < b.employeeType) {
return 1;
}
if (a.employeeType > b.employeeType) {
return -1;
}
return 0;
});
----------------- login_chat.gradle ----------
:Feeds:generateDebugRFile
+--- :Feeds:generateDebugRFile (*)
\--- :login_chat:generateDebugRFile
+--- :Feeds:generateDebugRFile (*)
\--- :login_chat:generateDebugRFile (*)
(*) - details omitted (listed previously)
--------------- feeds.gradle ----
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-database:16.0.2'
implementation 'com.google.firebase:firebase-messaging:17.3.2'
implementation 'com.google.firebase:firebase-auth:16.0.3'
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
implementation 'org.greenrobot:eventbus:3.0.0'
api project(':Feeds')
}
apply plugin: 'com.google.gms.google-services'