Materialdrawer: Failed to resolve: com.android.android.support 25.4.0

Created on 19 Jun 2017  路  6Comments  路  Source: mikepenz/MaterialDrawer

compile 'com.android.support:appcompat-v7:25.3.1'

compile('com.mikepenz:materialdrawer:5.9.3@aar') {
transitive = true
}

But... 25.4.0 also doesn't work.

unrelated

Most helpful comment

Adding the Maven repository worked for me. Just put this code above your dependencies:

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

dependencies {...}

All 6 comments

@gmoraiz that's not a MaterialDrawer specific issue.

Please follow Android / Google's guide on how to get the latest support libraries.

https://developer.android.com/topic/libraries/support-library/setup.html

I am having the same issue as OP. The developer doc you linked to (https://developer.android.com/topic/libraries/support-library/setup.html) doesn't solve the problem when I add google maven repo. What is the solution?

UPDATE:
the resolution is here - https://issuetracker.google.com/issues/62830109

@IgorGanapolsky please read the link. it does solve the problem

If you cannot get support lib 25.4.0 installed, you can exclude it.
No problem for me so far.

compile('com.mikepenz:materialdrawer:5.9.3@aar') {
    transitive = true
    exclude group: 'com.android.support'
}

Adding the Maven repository worked for me. Just put this code above your dependencies:

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

dependencies {...}

Now, instead of 'maven {url "https://maven.google.com" }' just 'google()' will also work.

allprojects {
    repositories {
        . . . 
        google()
        . . .
    }
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

kakai248 picture kakai248  路  4Comments

hosseiniSeyRo picture hosseiniSeyRo  路  3Comments

HanderWei picture HanderWei  路  3Comments

ghost picture ghost  路  3Comments

Ahmed-Emad picture Ahmed-Emad  路  4Comments