Error importing TodoLite Android

17 views
Skip to first unread message

Traun Leyden

unread,
Nov 25, 2014, 5:37:40 PM11/25/14
to mobile-c...@googlegroups.com

This came to me via an email, but I'm posting to the forum in case anyone else has run into a problem importing TodoLite-Android:

Let me preface this by noting that I haven’t delved a lot into Gradle, since Android Studio has worked pretty well for me, so there may be a relatively simple solution for this problem. However, just following the Getting Started instructions, I ran into trouble.

When I imported the ToDoLite project into my Android Studio, I got a dialog stating that Version 0.13.3 of the Android Gradle Plugin (which is what I have) requires Gradle 2.1 or newer, and offering to upgrade the version (in the project, I later figured out.) If I do that, I get a build failure:

"Gradle version 1.10 is required. Current version is 2.1. If using the gradle wrapper, try editing the distributionUrl…"

Which was rather confusing. Several iterations of fixing up versions in the project and libraries failed to produce a successful build. I eventually gave up and created a new empty project, and cut and pasted the components and dependencies from ToDoLite into it, which did succeed.

I’m not sure if this could be solved by making the Gradle version spec open-ended, or if it will require a separate version of the sample. It wasn’t a show-stopper for me, but I’m sure you’d like the initial developer experience to be better.

Traun Leyden

unread,
Nov 25, 2014, 5:51:25 PM11/25/14
to mobile-c...@googlegroups.com, tle...@couchbase.com

This should have been fixed by this commit.  I tested importing the project on Android Studio 0.8.14, and it worked fine.

Also I put in a question to the Adt-dev group to get their advice on an overall approach that avoids these kinds of errors:


If anyone has any tips, please don't hesitate to post them.
Reply all
Reply to author
Forward
0 new messages