Ron Pelayo
Ron Pelayo

Reputation: 655

Can't add dependency Android Studio

I'm having problem importing ActionbarSherlock in my project.It's added in my build.gradle but when I extend my Activity to SherlockActivity in my project, Android Studio doesn't show actionbarsherlock.

This is my build.gradle dependency

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.actionbarsherlock:actionbarsherlock-fest:4.4.0@jar'

}

and in my external library has the jar file of actionabrsherlock

Upvotes: 1

Views: 1603

Answers (1)

nucleartide
nucleartide

Reputation: 3988

Try this instead:

compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'

This automatically gets ActionBarSherlock from Maven Central. You can remove your downloaded JAR file too.

In general, Gradle, please makes it super easy to add dependencies to your project.

Upvotes: 1

Related Questions