android10 / Android-CleanArchitecture

This is a sample app that is part of a series of blog posts I have written about how to architect an android application using Uncle Bob's clean architecture approach.
Apache License 2.0
15.49k stars 3.33k forks source link

Does not import cleanly into Android Studio #74

Closed dmfrey closed 8 years ago

dmfrey commented 8 years ago

I can get things running, but all the gradle files report issues and warnings. Android Studio Project Structure does not resolve any versions. JUnit test classes aren't decorated as such.

Am I missing something here?

android10 commented 8 years ago

Can you build via command line? On Android Studio just import into a new project by picking the main build.gradle file.

dmfrey commented 8 years ago

I can build it on the command line. I did find that I had the wrong build variant set. Once I set it to Junit, all the unit test stuff resolved fine.

However, look at the Project Settings. It can't find which version of the build tools you are using, or the versions of the libraries. Likewise, in the build.gradle files, the versions being referenced from build dependencies are indicating warnings.

On Fri, Nov 13, 2015 at 9:30 AM Fernando Cejas notifications@github.com wrote:

Can you build via command line? On Android Studio just import into a new project by picking the main build.gradle file.

— Reply to this email directly or view it on GitHub https://github.com/android10/Android-CleanArchitecture/issues/74#issuecomment-156447369 .

android10 commented 8 years ago

Hey Daniel, thanks for the feedback. The problem that you might be facing is that you do not have installed the build tools version specified in the project build.gradle. I will look into this asap.

dmfrey commented 8 years ago

Thank you. Let me know if you want me to test anything out.

On Mon, Nov 16, 2015 at 3:48 AM Fernando Cejas notifications@github.com wrote:

Hey Daniel, thanks for the feedback. The problem that you might be facing is that you do not have installed the build tools version specified in the project build.gradle. I will look into this asap.

— Reply to this email directly or view it on GitHub https://github.com/android10/Android-CleanArchitecture/issues/74#issuecomment-156957674 .

android10 commented 8 years ago

@dmfrey I bumped both android build tools and gradle versions. Here is the commit: https://github.com/android10/Android-CleanArchitecture/commit/57401b29b26d0cb0a7773f8d495930e212faadb0

Will close the issue and we re open if there is someone else having problems. Thanks for the feedback.