Android Studio 3.1 always gets an error on the ability to resolve dependencies

After updating android studio to 3.1, if I add a new dependency, it will suddenly error:

dependencies {
compile'com.github.florent37:android-slidr:1.0.4'
}

It gives this error:

< /p>

Failed to resolve: com.github.florent37:android-slidr:1.0.4

All themes in my style give red errors And said that the symbol’theme’ cannot be resolved, but if I run my application, it works very interesting.

Failed to resolve: com.github.florent37:android-slidr:1.0.4

Make sure to add in the Project Level build.gradle section The following.

allprojects {
repositories {
.........
maven {
url " http://dl.bintray.com/florent37/maven"
}
}

FYI

If the same problem occurs, you can use the OLD version

compile'com.github.florent37:android-slidr:1.0.3'

Update android studio to After 3.1, if I add a new dependency, it will suddenly error:

dependencies {
compile 'com.github.florent37:android-slidr:1.0.4'
}

It gives this error:

Failed to resolve: com.github.florent37:android-slidr:1.0.4

All the themes in my style give a red error and say that the symbol’ theme cannot be resolved ‘, but if I run my application, it works very interesting.

Failed to resolve: com.github.florent37 :android-slidr:1.0.4

Make sure to add the following in the Project Level build.gradle section.

allprojects {< br /> repositories {
.........
maven {
url "http://dl.bintray.com/florent37/maven"
}< br /> }

FYI

If the same problem occurs, you can use the OLD version

compile'com.github. florent37:android-slidr:1.0.3'

Leave a Comment

Your email address will not be published.