navasmdc / MaterialDesignLibrary

This is a library with components of Android L to you use in android 2.2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error rippleColor has already been defined

bhavesh-hirpara opened this issue · comments

the problem is with lib google
compile 'com.google.android.gms:play-services-maps:8.4.0'

code is

    <!-- Color of ripple animation -->
    <attr name="rippleColor" format="color|reference" />

compile 'com.github.anasanasanas123:MaterialDesignLibrary:1.8'

Error:(32, 13) Failed to resolve: com.github.anasanasanas123:MaterialDesignLibrary:1.8

add compile 'com.github.anasanasanas123:MaterialDesignLibrary:1.8',then have this error:
Error:Execution failed for task ':tablelamp:dexDebug'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_66\bin\java.exe'' finished with non-zero exit value 2

How can fix it?

repositories {
jcenter()
maven { url "https://jitpack.io" }
}

dependencies {
compile 'com.github.anasanasanas123:MaterialDesignLibrary:1.7'
}

@anasanasanas123
Failed to resolve: com.github.anasanasanas123:MaterialDesignLibrary:1.7

@huylv177
did you added maven { url "https://jitpack.io" } in repositories ?

@anasanasanas123 yes of course, i added it in build.gradle of whole project and the "compile..." in app module's build.gradle file.

@anasanasanas123
Hi, i use your library and have error when use buttonRectangle.setText:

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
                                                                              at com.gc.materialdesign.views.Button.setText(Button.java:185)

in this line:

public void setText(String text) {
        this.textButton.setText(text);
    }

Can you help me?

this worked for me
in the dependencies block :
compile 'com.github.vajro:MaterialDesignLibrary:1.6'

in the repositories block :
maven { url "https://jitpack.io" }
jcenter()