0

I'm trying to add ActionbarSherlock as dependency using line I got from gradleplease

(Instead of these methods. At least according to this link:

"In Gradle you no longer need to add in these libraries as source code projects; you can simply refer to them as dependencies, and the build system will handle the rest; downloading, merging in resources and manifest entries, etc. For each library, look up the corresponding AAR library dependency name (provided the library in question has been updated as a android library artifact), and add these to the dependency section."

this setup should not be necessary anymore)

But it doesn't work and module settings in Android studio shows error: "Library 'ComActionbarsherlockComActionbarsherlock440.aar': Invalid classes root"

Any idea?

Community
  • 1
  • 1
User
  • 31,811
  • 40
  • 131
  • 232
  • Could you share your build.gradle file? – Matt Whetton Oct 15 '13 at 15:06
  • Look at my answer here - http://stackoverflow.com/questions/19234698/how-do-i-add-guava-to-my-android-studio-project/19234870#19234870 See that I have another `respositories` in my `build.gradle` apart from the one under `buildscript` – Varun Oct 16 '13 at 03:32

1 Answers1

0

Add these line in your module build.gradle

dependencies {
    compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
}
Jintin
  • 1,426
  • 13
  • 22