javiersantos / MaterialStyledDialogs

A library that shows a beautiful and customizable Material-based dialog with header. API 14+ required.
Apache License 2.0
1.17k stars 155 forks source link

I cant clone project #8

Closed tellfa closed 8 years ago

tellfa commented 8 years ago

Hi, when clone this project in Android Studio 1.5.1 show me this error : 8 My SDK version : 23.1.1 (lasted). how to fix it?

javiersantos commented 8 years ago

Please, make sure you have included the jcenter() repository in your project build.gradle too.

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

Does it solve your issue?

tellfa commented 8 years ago

please see this : 9

tellfa commented 8 years ago

how to fix it my dear friend?

tellfa commented 8 years ago

how to fix it my dear friend?

javiersantos commented 8 years ago

Make sure that jcenter() is included before the maven repository.

screen shot 2016-02-19 at 10 38 17
tellfa commented 8 years ago

Why show me this error? :( I need this library 10

javiersantos commented 8 years ago

Could you manually add this library in your dependencies and see if it works?

compile 'me.zhanghai.android.materialprogressbar:library:1.1.4'
tellfa commented 8 years ago

When added this library show me this error : 11

javiersantos commented 8 years ago

Have you synced with Gradle your project after doing the changes? That is a mandatory step when changing your dependencies and repositories.

screen shot 2016-02-19 at 12 48 40
tellfa commented 8 years ago

yes, sync my project and show this error

nyancrimew commented 8 years ago

Is your Computer connected to the internet? (Sorry bout that stupid question but if not it will not work)

dtheodor79 commented 8 years ago

Hello, I have the exact same issue. I have added the maven repository as you describe, however Android Studio 1.5.1 complains:

Error:(104, 13) Failed to resolve: com.github.javiersantos:MaterialStyledDialogs:1.2.1

Note, that the other library you mentioned ( me.zhanghai.android.materialprogressbar:library:1.1.4 ) is added successfully.

Any way to resolve it? Thanks!

nyancrimew commented 8 years ago

Ok guys I will take a look at it for you two!

On 05 Mar 2016, at 19:14, dtheodor79 notifications@github.com wrote:

Hello, I have the exact same issue. I have added the maven repository as you describe, however it Android Studio 1.5.1 complains:

Error:(104, 13) Failed to resolve: com.github.javiersantos:MaterialStyledDialogs:1.2.1

Note, that the other library you mentioned ( me.zhanghai.android.materialprogressbar:library:1.1.4 ) is added successfully.

Any way to resolve it? Thanks!

— Reply to this email directly or view it on GitHub https://github.com/javiersantos/MaterialStyledDialogs/issues/8#issuecomment-192700551.

dtheodor79 commented 8 years ago

Thanks, cause the library looks very nice! ;)

javiersantos commented 8 years ago

Guys, could you use this Gradle dependency instead of the current one and check if it works? Thanks!

dependencies {
    compile 'com.github.javiersantos:MaterialStyledDialogs:1.2.2@aar'
}

or

dependencies {
    compile('com.github.javiersantos:MaterialStyledDialogs:1.2.2@aar') {
        transitive = true
    }
}
dtheodor79 commented 8 years ago

Just tried both cases, and still shows the same error :(

tellfa commented 8 years ago

Show me error again :disappointed:

aakash94 commented 8 years ago

I had the exact same error, it is because of pasting the code in the wrong place in the project's build.gradel , I am uploading an image to clarify this..

maven { url "https://jitpack.io" } must be in the allprojects and not in buildscripts this is my code that works perfectly for me. debug

javiersantos commented 8 years ago

Thank you for clarifying, @aakash94!

tellfa commented 8 years ago

show me error again @aakash94

vish30 commented 8 years ago

Thank you so much @aakash94 this solved the error for other jitpack.io repositories too.