Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duplicate content roots detected [duplicate]

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

Duplicate content roots detected: Path [/home/[username]/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

like image 493
TightPhysics Avatar asked Dec 05 '25 02:12

TightPhysics


1 Answers

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.

  • https://issuetracker.google.com/issues/232007221

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

  • https://youtrack.jetbrains.com/issue/IDEA-210908/Do-not-auto-remove-duplicate-content-roots-detected
like image 121
Richard Le Mesurier Avatar answered Dec 08 '25 01:12

Richard Le Mesurier



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!