hello every one : i have an issue ,, i have a project with 3 modules :app , common , Trip ,,, the module app need common and trip ,, the Trip module need only common , so i wanna run some UI tests in Trip module but i needed to add androidTestImplementation project(path: ':app')
so i can import Mainactivity and some other class and it gives me this error :
===
Task
ArbinTripRequestCreationmergeDexStagingAndroidTest FAILED
AGPBI: {"kind":"error","text":"Type androidx.activity.compose.R is defined multiple times: /Users/hb/rider-android/app/build/.transforms/c83675c18688c07c808f5074421a02cc/transformed/classes/classes.dex, /Users/hb/rider-android/ArbinTripRequestCreation/build/intermediates/project_dex_archive/stagingAndroidTest/out/7fe88f605e34c71b18befa5a4a52bf7ad8faa212437ca9fb29345a33a8c4165d_0.jar:classes.dex","sources":[{"file":"/Users/hb/rider-android/app/build/.transforms/c83675c18688c07c808f5074421a02cc/transformed/classes/classes.dex"}],"tool":"D8"}
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Learn how to resolve the issue at
https://developer.android.com/studio/build/dependencies#duplicate_classes.
Type androidx.activity.compose.R is defined multiple times:
(edited)