Error:(27, 0) Project with path ':library' could not be found in project ':app'

Oreo picture Oreo · Feb 25, 2016 · Viewed 31.6k times · Source

I have copied this library folder in root of project but always getting:

Error:(27, 0) Project with path ':library' could not be found in project ':app'.
<a href="openFile:/home/oreo/Projects/RippleSample/app/build.gradle">Open File</a>

Here is the Project structure:

RippleSample
   > .gradle
   > .idea
   > app
   > gradle
   > library [just imported]

Answer

Szu.W picture Szu.W · Mar 20, 2017

Create a settings.gradle file in the root of your project and add

include ':library' 

to the file. Just like this image:

enter image description here