Question

I'm trying to import this android library project into my application from Android Studio (0.2.5, gradle 1.7), but I always get some error, no matter what I try.

I mainly have tried to follow the most voted answer from this post, (I even tried with a HelloWord project from the scratch and actionbarsherlock) but at the end I get some error, like

Gradle: A problem occurred evaluating project ':libraries:actionbarsherlock'.
> Gradle version 1.6 is required. Current version is 1.7

Can anyone help me? Can you import either the filedialog or the sherlock library into an Android studio project?

Était-ce utile?

La solution

I solved upgrading to Android Studio 0.2.6. Here, the "New Module" issue has been fixed, so you can add a new library module to your project. Then, I replicated the library project into this new module (adding manually activities, files, resources...), and now I've a working gradle project.

I know this is a bit tricky, but I had to make it work!

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top