This should have been fixed by this commit <https://github.com/couchbaselabs/ToDoLite-Android/commit/ba8e309e4e66401a71672e88dfb92c85cd85f7f6>. 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: https://groups.google.com/forum/#!topic/adt-dev/ocvAigtJZo0 If anyone has any tips, please don't hesitate to post them. On Tuesday, November 25, 2014 2:37:40 PM UTC-8, Traun Leyden wrote: > > > 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 > <https://github.com/couchbaselabs/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. > > > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/f7fbc753-dfb6-4f7d-b4f8-53fe9e810bc0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
