Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle not resolving after compiling rainbow hat #85

Open
soorajshankar opened this issue Dec 17, 2017 · 5 comments
Open

Gradle not resolving after compiling rainbow hat #85

soorajshankar opened this issue Dec 17, 2017 · 5 comments

Comments

@soorajshankar
Copy link

Error:Execution failed for task ':app:preDebugAndroidTestBuild'.

Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (24.2.0) and test app (25.4.0) differ. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.

@Fleker
Copy link
Contributor

Fleker commented Dec 17, 2017 via email

@soorajshankar
Copy link
Author

I fixed that by removing expresso from dependency .
But seems some version mismatching is there.
BTW this was the way I imported rainbowhat

compile 'com.google.android.things.contrib:driver-rainbowhat:+'

also tried with older version 0.7 and all

Min SDK version 26
target SDK version 26 (tried with 24 as min also then things was not compatible)

@Fleker
Copy link
Contributor

Fleker commented Dec 17, 2017

Looks like Rainbow Hat uses 24.2.0 of Android Support Annotations, but only for testing. I don't know why it would conflict with your version.

@soorajshankar
Copy link
Author

I think Android Support Annotations are defined as Implementation but not Test Implementation

I doubt that could be a problem if I use another support library with different version

@Fleker
Copy link
Contributor

Fleker commented Dec 18, 2017

Yes you're right it isn't defined as testImplementation, but I do wonder why this library is using it. It probably should be updated or perhaps removed.

But implementation shouldn't pass the dependencies through AFAIK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants