Note that there are some explanatory texts on larger screens.

plurals
  1. POGradle dependencies not imported into library project
    primarykey
    data
    text
    <p>Hey I've been trying for hours to import an Android library (<a href="https://github.com/derekbrameyer/android-betterpickers" rel="nofollow noreferrer">BetterPickers latest commit</a>) into my project using Gradle</p> <p>After importing and setting it as module, I get compilation errors. It seems like something is wrong with dependencies in my <code>build.gradle</code> .</p> <p><a href="http://pastebin.com/HRZnR9JB" rel="nofollow noreferrer">build.gradle of library project</a><br> <a href="http://pastebin.com/3ey3BRCc" rel="nofollow noreferrer">build.gradle of main project</a> </p> <p>As you can see, Android Studio suggests an autofix but it's not helpful. <img src="https://i.stack.imgur.com/Khiqs.png" alt="error"></p> <p>When I try to run the project/Gradle build, I get compilation errors since the library project is dependent on <code>nineolddroids lib</code>. When I try to add <code>nineolddroids</code> to the dependencies I get a different error: </p> <blockquote> <p>Could not resolve all dependencies for configuration ':sub:bp:_DebugCompile'.</p> <p>Could not find com.nineoldandroids:library:2.4.0.)</p> </blockquote> <p>I guess both of them are derived from the same thing. How can I fix this?</p> <h1>A few remarks</h1> <ul> <li><p>Using latest Android Studio (0.2.5)</p></li> <li><p>Android Support Repository is installed</p></li> <li><p>In the main project, the support lib is imported just fine and I get no compilation errors when using classes from support lib</p></li> <li><p>Tried many ways to import the library project, including answers from <a href="https://stackoverflow.com/questions/16588064/how-do-i-add-a-library-project-to-the-android-studio">here</a></p></li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload