Error Building commcare-odk ?

20 views
Skip to first unread message

Daniel Kornhauser

unread,
Sep 25, 2015, 1:51:16 PM9/25/15
to CommCare Developers, Josejulio Martínez
Hi:

Trying to run commcare-odk from source so I can work on a biometric authentication feature. 

Followed to the letter all steps in commcare-odk/README.md

But I get the following message when I tried to compile:
Error:Configuration with name 'default' not found.

Attaching screenshot of the Error Show in my Android Studio

    Any suggestions ?

         Thanks.

                         Daniel

 
AndroidStudioCommCareBuildError.png

William Pride

unread,
Sep 25, 2015, 2:06:46 PM9/25/15
to commcare-...@googlegroups.com, Josejulio Martínez
Hello,

Did you add the project to Android Studio via the Import Project option? If not you may be running into this issue.

If that doesn't help, it would be helpful to post the IDE output log under Help -> Show Log.

Best,
Will



--

---
You received this message because you are subscribed to the Google Groups "CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commcare-develo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Kornhauser

unread,
Sep 25, 2015, 2:34:22 PM9/25/15
to commcare-...@googlegroups.com
Thanks William !

Attaching my log and a screenshot of my SDK manager.

Looked again the stack overflow link you sent but did not find any useful suggestions.

I imported it via Import Project option as stated in the bullet points of Readme.md:
  • From the Android Studio Welcome dashboard, click "Import project (Eclipse ADT, Gradle, etc.)"
  • Select AndroidStudioProjects > CommCareODK > commcare-odk and hit OK
  • Click "Cancel" on the Gradle Sync modal (this just declines Android Studio's overzealous offer to do some automatic stuff we don't want)
  • Click "Cancel" on the Import Gradle Project popup (also just declining something automatic that we don't want)
    Any other suggestion ?

           Daniel

--

---
You received this message because you are subscribed to a topic in the Google Groups "CommCare Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/commcare-developers/EXSMXw_Mk-w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to commcare-develo...@googlegroups.com.
idea.log
sdk-manager.png

William Pride

unread,
Sep 25, 2015, 3:21:43 PM9/25/15
to commcare-...@googlegroups.com, dani...@gmail.com
Hey Daniel,

Looking at the top of your log it looks like the gradle import is failing:

Failed to import Gradle project at '/Users/dkor/AndroidStudioProjects/CommCareODK/commcare-odk' 

So I'm guessing that Android Studio is just importing the files but not setting up the Gradle project. Not sure but I think the issue is that you're running Gradle 2.2:

Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.2-bin.zip'.

And I believe we require Gradle 2.4. I'd recommend upgrading your Gradle version, then trying the setup (including project import) from scratch. I'll update the Readme to reflect this requirement.

Best,
Will

Daniel Kornhauser

unread,
Sep 25, 2015, 4:29:23 PM9/25/15
to William Pride, commcare-...@googlegroups.com
Hi William

Switched Gradle Home to 2.4. still not building with same error.
Tried it to build it in a linux VM and also got same error.
Attached clean log.

   Daniel
idea.log

William Pride

unread,
Sep 25, 2015, 4:41:37 PM9/25/15
to Daniel Kornhauser, commcare-...@googlegroups.com
We've taken this discussion off-thread, will post the fix when we've figured it out. 
Reply all
Reply to author
Forward
0 new messages