Duplicate content roots detected [duplicate]

May 2024 ยท 1 minute read

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

4

1 Answer

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).

9

ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJobmtsYWyCdoGOnayppJmYrrWxjJymp6yVo8Fuvs6oq6xllJrBpq%2FTnps%3D