Sadegh
Sadegh

Reputation: 55

gradle not working well

I want to add a library to my gradle but this library should be like this

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:design:23.1.0'
    compile 'com.github.clans:fab:1.6.2'
}

but when I copy this code my whole program will changes like this errors comes I really don't know why.

Android errors

Upvotes: 2

Views: 126

Answers (2)

AskNilesh
AskNilesh

Reputation: 69709

You need to use same version of support library

compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'

Then Clean-Rebuild-Run your project

Upvotes: 1

mehul chauhan
mehul chauhan

Reputation: 1802

Use this

dependencies {
   compile fileTree(dir: 'libs', include: ['*.jar'])
   compile 'com.android.support:appcompat-v7:23.1.1'
   compile 'com.android.support:design:23.1.1'
   compile 'com.github.clans:fab:1.6.2'
}

Upvotes: 1

Related Questions