-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error:Failed to resolve: Android-Iconics:iconics-core:unspecified #574
Comments
Can you try to add mavenCentral() as dependency repository? |
Added mavenCentral() to app's build.gradle (not the project's build.gradle) with these lines:
But, error remains the same! Added mavenCentral() to project's build.gradle (not the app's build.gradle) with these lines:
Still the same error is showing and blocking!! |
Is there another way to add mavenCentral() as dependency? |
And you updated to the latest v23 build tools and target sdk version and 1.3 gradle build tools? |
Yes!
|
Using Android Studio 1.3.2.
Was using MaterialDrawer with the same configuration without problem before moving to 4.0.0. |
Just tried a Run>Rebuild from Android Studio menu and got again:
|
Hmmm really strange. A similar configuration is working for me on multiple projects. Also for some friends. I'm currently on vacation until tomorrow. Will take a closer look then |
Found that this only happens when I add
to app's build.gradle. When this line is removed from build.gradle:
then compilation succeeds and whole build is successful! |
If you only have mavenCentral or mavenCentral. before jCenter? |
Changed my project's
and did a clean/build, but still got:
|
@bzkdjc can you try to add the materialdrawer dependenc with the transitive part? compile('com.mikepenz:materialdrawer:4.0.0@aar') {
transitive = true
} and remove the iconics-core dependency (this is already part of the materialdrawer) |
This is my dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.0.0'
compile('com.mikepenz:materialdrawer:4.0.0@aar') {
transitive = true
}
compile 'com.mikepenz:fontawesome-typeface:4.4.0.1'
... I get that exact same error:
Did you say to also remove the fontawesome dependency? I read "also add the font dependency." The problem may come from that fontawesome dependency. |
The whole apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.0"
defaultConfig {
applicationId "com.veryexample.cr"
minSdkVersion 14
targetSdkVersion 23
versionCode 3
versionName "3.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.0.0'
compile('com.mikepenz:materialdrawer:4.0.0@aar') {
transitive = true
}
compile 'com.mikepenz:fontawesome-typeface:4.4.0.1'
compile project(':imageResizer')
compile 'com.github.gabrielemariotti.cards:cardslib-core:2.1.0'
compile 'com.github.gabrielemariotti.cards:cardslib-cards:2.1.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.snappydb:snappydb-lib:0.5.2'
compile 'com.esotericsoftware.kryo:kryo:2.24.0'
compile 'com.github.lawloretienne:trestle:0.0.2'
} |
@bzkdjc i am still not sure why your |
@bzkdjc can you please zip and send me the small sample app you've created. i hope it will also fail with the same exception on my system. |
Removing extra code and zipping... |
Just zipped and 'email'ed. |
@bzkdjc do you want to know something. it showed the same issue for me. after that i added compile 'com.mikepenz:google-material-typeface:1.2.0.1@aar' in addition to compile 'com.mikepenz:fontawesome-typeface:4.4.0.1@aar' and it worked. So i removed compile 'com.mikepenz:google-material-typeface:1.2.0.1@aar' again. but it still works. do not ask my what gradle does here, or why it has troubles first and then it doesn't but yeah. |
So... I'm going to try to add |
Added dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.0.0'
compile('com.mikepenz:materialdrawer:4.0.0@aar') {
transitive = true
}
compile 'com.mikepenz:google-material-typeface:1.2.0.1'
compile 'com.mikepenz:fontawesome-typeface:4.4.0.1'
} But here, still shows that exact same issue! |
@bzkdjc here is the one which is working on my machine now: https://docs.google.com/uc?id=0B4Y8HN2BnSjpc182bk1uQjBxMFk&export=download |
Going to try that... |
@bzkdjc no. just a different path of my sdk. it's ok |
Yes! |
@bzkdjc you can check. no differences in the gradle. right? |
Yes! Then, what's up with previous version?? |
And can I move to your latest 4.0.1?? |
@bzkdjc yes you can update to the latest. i still do not know why it is / was not compiling for you |
FontAwesome now appears OK. |
Thank you very much for your time :) |
@bzkdjc thank you so much that you did not go crazy :D and sorry for the issues. and sorry that i still do not really know what'S the problem :O |
@bzkdjc found the issues. and now i know why it only happens for some people. The difference between my gradle and dependencies and yours is that i always add So you now have to options. either you add compile('com.mikepenz:google-material-typeface:1.2.0.1@aar')
compile('com.mikepenz:fontawesome-typeface:4.4.0.1@aar') or you add compile('com.mikepenz:google-material-typeface:1.2.0.1') {
transitive = false
}
compile('com.mikepenz:fontawesome-typeface:4.4.0.1') {
transitive = false
} |
Sorry to say exact issue for me, just tried every combination on this topic with no luck |
@alejandroluengo you also haven |
Hi @mikepenz. Sorry, I have exactly the same problem here. Have you found the source of the problem? I shared a screenshot. Regards! |
@hectorggp is your gradle in offline mode? as of the log it does not search on mavenCentral nor in jCenter |
no, not in offline mode according to preferences> build, execution, 2016-09-19 11:45 GMT-07:00 Mike Penz notifications@github.com:
Héctor G. Gatica Paz -- Cel. (502) 5558 9832 |
@hectorggp but your gradle output shows that it is not searching online |
Yes, but I have not selected this option. Surely it is Gradle problem. I'll 2016-09-19 11:51 GMT-07:00 Mike Penz notifications@github.com:
Héctor G. Gatica Paz -- Cel. (502) 5558 9832 |
@hectorggp ok great |
I've found one more simple issue for resolving problem with FontAwesome importing. Yes, not compiling but importing. I was using old version (com.mikepenz.materialdrawer:library:0.9.5@aar), and when i was update it to 5.9.2, i've got problem with FontAwesome class. Nothing helped me, but. |
Since I reconfigured my code to use v4.0.0, Android Studio does not compile! Anything I try fails with that message:
Even when I try to clean the project I get:
This never happened before when using v3. But, I already updated all my code to use v4, today!
This is what's included in app's
build.gradle
:The text was updated successfully, but these errors were encountered: