멀티모듈을 적용해본다고 개발을 하고있는데
뭣만 했다하면 오류가나서 참 평생을 오류만 잡다 개발인생이 끝날것 같은 운명인것 같습니다.
수많은 라이브러리를 사용하고 있는데, 개인앱을 만들면서 이 많은 라이브러리 버전들을관리하는게
맞나 싶은 생각이 듭니다.
라이브러리 버전 별 호환성 측면도 생각을 해야할텐데 IDE오류만 가지고 어디가 잘못되었는지 판단이 안되네요
/** common */
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
implementation "androidx.core:core-ktx:$ktxVersion"
implementation "androidx.appcompat:appcompat:$appCompatVersion"
implementation "com.google.android.material:material:$materialVersion"
implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
implementation 'androidx.navigation:navigation-fragment-ktx:2.5.3'
implementation 'androidx.navigation:navigation-ui-ktx:2.5.3'
testImplementation "junit:junit:$junitVersion"
androidTestImplementation "androidx.test.ext:junit:$junitTestVersion"
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoCoreVersion"
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$archLifecycleVersion"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$archLifecycleVersion"
implementation "androidx.fragment:fragment-ktx:$rootProject.fragmentVersion"
implementation 'androidx.activity:activity-ktx:1.7.0'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
/** HILT */
implementation "com.google.dagger:hilt-android:$hiltAndroidVersion"
kapt "com.google.dagger:hilt-android-compiler:$hiltVersion"
implementation "androidx.hilt:hilt-lifecycle-viewmodel:$hiltViewModelVersion"
kapt "androidx.hilt:hilt-compiler:$hiltViewModelVersion"
annotationProcessor "androidx.hilt:hilt-compiler:$hiltViewModelVersion"
/** GOOGLE MAP */
implementation 'com.google.android.gms:play-services-maps:18.1.0'
implementation 'com.google.android.gms:play-services-location:21.0.1'
/** NAVIGATION COMPONENT */
implementation "androidx.navigation:navigation-fragment-ktx:$navigationVersion" // Kotlin
implementation "androidx.navigation:navigation-ui-ktx:$navigationVersion" // Kotlin
implementation "androidx.navigation:navigation-dynamic-features-fragment:$navigationVersion"
androidTestImplementation "androidx.navigation:navigation-testing:$navigationVersion"
implementation "androidx.navigation:navigation-compose:$navigationVersion"
// Testing Fragments in Isolation
debugImplementation("androidx.fragment:fragment-testing:$fragmentVersion")
androidTestImplementation("com.google.dagger:hilt-android-testing:$hiltTestVersion")
kaptAndroidTest("com.google.dagger:hilt-android-compiler:$hiltCompilerVersion")
// implementation "com.github.sarang628:Feed:$feedVersion"
implementation "com.github.sarang628:Alarm:$alarmVersion"
implementation "com.github.sarang628:Theme:$themeVersion"
이번에 발생한 오류는 새로만든 화면 모듈을 추가하면서 발생하였습니다.
annotation @AggregatedRoot is missing default values for elements rootPackage,rootSimpleNames,originatingRootPackage,originatingRootSimpleNames
@AggregatedRoot(
implementation "com.github.sarang628:Feed:$feedVersion" //이 모듈을 새로 추가
implementation "com.github.sarang628:Alarm:$alarmVersion"
implementation "com.github.sarang628:Theme:$themeVersion"
}
아직 해결방법을 찾고있습니다ㅠㅠ
라이브러리의 hilt 버전과 메인app의 hilt 버전이 달라 발생한 오류였습니다.