Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java It Depends On You

Paul Yorde
Paul Yorde
10,497 Points

Why doesn't twitter4j library build from Gradle?

This library is found in the twitter docs. http://twitter4j.org/en/index.html

I added it to the dependencies: compile 'org.twitter4j:twitter4j-core:4.0'

I ran the dependencies: ./gradlew dependencies

However, that build failed. Though, CSV and jsoup passed.

I was able to successfully add the jar file to my class path and that works. Considering this library says that it has no other dependencies, that seems to be Okay. Still, I'm curious as to why it didn't build in Gradle.

Hi

I have no problem adding it to my project ... this is what I have

dependencies { compile group: 'org.apache.commons', name: 'commons-csv', version: '1.4'

compile group: 'org.jsoup', name: 'jsoup', version: '1.9.2'

compile group: 'org.twitter4j', name: 'twitter4j-core', version: '4.0.4'

testCompile group: 'junit', name: 'junit', version: '4.11'

}