Filip Zymek
Filip Zymek

Reputation: 2646

Using modules dependencies with Android Studio and Gradle

I am trying to switch to Android Studio from Eclipse to build and write my apps, but I find it not obvious how to use android modules as dependencies (like ActionBarSherlock or AndEngine).

It is very easy achievable with Eclipse, but I don't know how to do this with Android Studio. I managed to import both AndEngine and my projects to Android Studio, but I cannot get it to compile.

This is how my dir structure looks like:

|-Developement
    |--SDK
        |--AndEngine
        |--ActionBarSherlock
        |--Facebook-sdk
        |--.....
    |--Projects
        |--Project1 (depends on AndEngine)
        |--.....

With Eclipe, dependencies are configured via workspace or with project.properties, my question is, how to achieve it with AndroidStudio and gradle?

Upvotes: 1

Views: 1909

Answers (1)

Adam Johns
Adam Johns

Reputation: 36353

This answer gives a good explanation of how to add ActionBarSherlock as an aar dependency in Android Studio.

Upvotes: 1

Related Questions