31

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]
Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
Oreo
  • 2,586
  • 8
  • 38
  • 63

3 Answers3

83

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

FoldFence
  • 2,674
  • 4
  • 33
  • 57
Szu.W
  • 891
  • 7
  • 6
29

In your RippleSample/settings.gradle you have to add:

include ':app' , ':library'
Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
-2

Put the jar into the libs folder

Right click it and hit 'Add as library'

Ensure that compile files('libs/jar') is in your build.gradle file

Do a clean build

Laxmeena
  • 780
  • 2
  • 7
  • 28