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
41 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).
- https://youtrack.jetbrains.com/issue/IDEA-210908/Do-not-auto-remove-duplicate-content-roots-detected
ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJobmtsYWyCdoGOnayppJmYrrWxjJymp6yVo8Fuvs6oq6xllJrBpq%2FTnps%3D