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

Not working with android Appcompat #55

Closed
Inzimam-Tariq opened this issue Oct 20, 2017 · 1 comment
Closed

Not working with android Appcompat #55

Inzimam-Tariq opened this issue Oct 20, 2017 · 1 comment

Comments

@Inzimam-Tariq
Copy link

I'm using android appcompat lib and when I try to add this lib in gradle file under dependencies on sync android studio give an error for support libraries like appcompat, recyclerview etc.
This is what I get on sync

Error:Failed to resolve: com.android.support:appcompat-v7:26.0.0
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:E:/Android_Studio_and_SDK/Opencart_android/app/build.gradle">Open File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

And this

Error:Failed to resolve: com.android.support:recyclerview-v7:26.0.0
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:E:/Android_Studio_and_SDK/Opencart_android/app/build.gradle">Open File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

But when I remove this lib (DiscreteScrollView) everything is work fine as usual. I tried more than once.
I'm using

  1. Android studio 2.3.3

  2. gradle-3.3

  3. Java 8

@yarolegovich
Copy link
Owner

Either install a repository, as advised in the error message, or provide all library's dependencies of your preferred versions and use:

compile ('com.yarolegovich:discrete-scrollview:1.3.0') {
   transitive = false
   //or
   exclude group: 'com.android.support'
}

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