Duplicate content roots detected [duplicate]
Asked Answered
A

1

18

Android Studio gives me the following error code after I copied my project.

Duplicate content roots detected: Path [/home/addi/AndroidStudioProjects/appfolder/appname/app/build/generated/sqldelight/code/Database/debug] of module [appname.app.main] was removed from modules [appname.app.main]

the "original" project doesn't show that error

SQL delight version 1.5.3 android studio chipmuck 2021.2.1

Armond answered 28/5, 2022 at 16:55 Comment(4)
See github.com/cashapp/sqldelight/issues/1894Gossamer
the problem is still existing after adding Sonatype's snapshots repository.Armond
Any solution for this? I'm getting the same error...Thermolysis
I get it works by this answer https://mcmap.net/q/385103/-shared-srcdirs-between-test-and-androidtest-unresolved-references-after-upgrade-to-android-studio-chipmunk-intellij-2021-2-1Philoctetes
T
5

There was a behaviour change in Android Studio Chipmunk that caused this.

Here is the related issue logged against Android Studio. It is apparently fixed in Dolphin.

And here is the one for JetBrains (which seems much older).

Tormentil answered 3/8, 2022 at 15:45 Comment(12)
I am facing same issue in Dolphin. I updated Chipmunk to Dolphin. It isn't a fresh install.Mccallister
It is still present in Dolphin. Fresh install.Pronate
facing in Electric EelWelsh
Facing in FlamingoJenette
Facing in Giraffe..Overzealous
Facing in HedgehogCommutate
it is not coming from Android Studio. In my case it is coming from moko-resources library for KMMSkiver
@KJNewtown Did you find a way to fix this warning?Sackbut
@PhilippFahlteich I still have the warning but I am still on an old version of moko-resources and my project is not ready to update it. Are you also using moko? Did you try using the latest moko version? The path in my warning is this one: [myApp/shared/build/generated/moko/androidMain/assets]Skiver
Facing in IguanaConductivity
@KJNewtown I had used moko-resources when commenting this answer, but removed it recently which unfortunately did not resolve this issue.Sackbut
Facing in KoalaHawking

© 2022 - 2024 — McMap. All rights reserved.