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

3

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]
Mohandis answered 25/2, 2016 at 6:40 Comment(1)
Please add your build.gradle files and your settings.gradle file.Switchman
H
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

Halmahera answered 20/3, 2017 at 9:42 Comment(0)
M
29

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

include ':app' , ':library'
Mordent answered 25/2, 2016 at 7:40 Comment(0)
D
-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

Detach answered 25/2, 2016 at 6:54 Comment(1)
right answer for adding .jar libraries ( not on this case )Grandeur

© 2022 - 2024 — McMap. All rights reserved.