i added
circleimageview-2.1.0 glide-3.7.0 google-material-typeface-3.0.1.0.original materialdrawer-5.8.2 to dependencies.
This's my buid.gradle :
compile 'com.android.support:appcompat-v7:25.2.0'
testCompile 'junit:junit:4.12'
compile project(':circleimageview-2.1.0')
compile project(':glide-3.7.0')
compile project(':google-material-typeface-3.0.1.0.original')
compile project(':materialdrawer-5.8.2')
Here's my error's:
If you have Android Studio : link
Or Xamarin : link
Try this examples and watch out for the syntax of it.
Related
When I initially used the code below in my build.gradle file, it helped me import the authentication.
compile 'com.google.firebase:firebase-auth:9.2.1'
After adding the below code to my build.gradle file
compile 'com.google.firebase:firebase-database:9.6.0'
Making me to have:
compile 'com.google.firebase:firebase-auth:9.2.1'
compile 'com.google.firebase:firebase-database:9.6.0'
together in my dependency, hence my authentication stopped working, displaying an error message in my MainActivity that I declared it.
"Cannot resolve symbol FirebaseUser" since FirebaseUser is what I named my import to be. Please help.
add same Dependencies version..
compile 'com.google.firebase:firebase-auth:9.6.0'
compile 'com.google.firebase:firebase-database:9.6.0'
I have recently started getting this issue with Android Studio and it has been driving me up the wall. I keep getting the error "Failed to resolve: com.squareup.okio:okio:1.8.0". These are the dependencies I have:
dependencies {
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile files('libs/okio-1.8.0.jar')
compile files('libs/retrofit-2.1.0 (1).jar')
}
As you can see, I have the retrofit and gson libraries simply compile (I'm assuming this downloads them from the internet), I tried doing the same with Okio however it didn't resolve, so I have speicifcally downloaded the 1.8.0 Okio JAR however it still fails to resolve. Why could this be? Any answer would be greatly appreciated. Thank you
Don't put dependencies as a Gradle dependency:
compile 'com.squareup.retrofit2:retrofit:2.1.0'
And as a .jar file in src/libs:
compile files('libs/retrofit-2.1.0 (1).jar')
at one time. Choose only one method. I advise you to choose Gradle dependencies, because they are automatically fetched.
In you case, the dependencies section should look like:
dependencies {
compile `com.google.code.gson:gson:2.7`
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
}
This is a really strange problem and I've been days stuck with it: we've got a working project (no errors whatsoever) in a git repository. Everything is OK (it's even published in Google Play) when executing the project from the creator's equip, but, when we try to clone it in a different equip (we've tried Mac, Linux and Windows), this exception is thrown:
Unable to execute dex: method ID not in [0, 0xffff]: 65536
Hereafter, even if we apply the multidex solution as described in Android Developers or delete the unused dependencies, the app raises an exception when trying to load class android.support.design.widget.NavigationView (coming from a NoClassDefFound in runtime).
I suspect maybe it has something to do with the gradle plugin or appcompat libs version, but so far, nothing we've tried has worked.
Edit: This is not a common multiDex error, I'm pretty familiarized about how to solve them, it's about one computer executing the app without problems but when you clone the same project from git in other computer, it won't run and the MultiDex error is thrown.
EDIT 2: mi dependenvy list is as follows (I ommit the company libs but they're not the problem
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:support-v4:23.0.1'
compile 'com.android.support:design:23.0.1'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.mo2o.third:valnif:1.0.0'
compile 'com.android.support:recyclerview-v7:23.0.+'
compile 'de.hdodenhof:circleimageview:2.0.0'
compile('com.afollestad.material-dialogs:core:0.8.0.1#aar') {
transitive = true
}
compile 'com.android.support:percent:23.0.0'
compile 'se.emilsjolander:stickylistheaders:2.6.0'
compile 'me.grantland:autofittextview:0.2.+'
compile 'com.google.android.gms:play-services-auth:8.3.0'
compile "com.google.android.gms:play-services-gcm:8.3.0"
compile 'com.google.android.gms:play-services-plus:8.3.0'
compile 'com.squareup.picasso:picasso:2.5.2'
I applied following library dependencies,In my android studio take only com.android.support:appcompat-v7:21.0.+ like that and all google dependencies.If i apply private library dependencies like following
Failed to find:it.neokree:MaterialTabs:0.11![Failed to find library dependencies in build.gradle android studio][1]
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.+'
compile 'com.android.support:recyclerview-v7:21.0.+'
compile 'org.lucasr.dspec:dspec:0.1.1'
compile 'it.neokree:MaterialTabs:0.11'
compile 'com.mcxiaoke.volley:library:1.0.+'
compile 'com.telly:mrvector:0.2.0'
compile 'com.oguzdev:CircularFloatingActionMenu:1.0.2'
compile 'me.tatarka.support:jobscheduler:0.1.1'
compile 'jp.wasabeef:recyclerview-animators:1.1.0'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.easing:library:1.0.1#aar'
compile 'com.daimajia.androidanimations:library:1.1.3#aar'
compile 'com.pkmmte.view:circularimageview:1.1'
compile 'com.android.support:gridlayout-v7:22.0.0'
}
Failed to find library dependencies in build.gradle android studio.
I researched so many times and tried so many ways.but i can't find solutions.i don't know this is a studio gradle problems or my company blocked some firewalls certificate for security.I want to solutions urgent.please somebody solve this problem and help for me.currently i have used jar files only.If i used jar files through libs folder then what is diffrent between eclipse and android studio/
Try sync gradle again and check if you can link to this page:
https://jcenter.bintray.com/it/neokree/MaterialTabs/maven-metadata.xml
If you can't, if might be the firewall problem.
And some dependencies might out of date.
I help you to sync the latest version using andle
com.android.support:appcompat-v7: 21.0.+ -> 23.1.0
com.android.support:recyclerview-v7: 21.0.+ -> 23.1.0
com.mcxiaoke.volley:library: 1.0.+ -> 1.0.19
jp.wasabeef:recyclerview-animators: 1.1.0 -> 2.0.1
com.daimajia.easing:library: 1.0.1 -> 1.0.2
com.android.support:gridlayout-v7: 22.0.0 -> 23.1.0
I am getting a NoClassDefFoundError for one of my classes that i am accessing in the Application sub class. Strangely it only occurs if i add a certain dependency to the project (zendesk) otherwise it works fine. FYI zendesk is dependent on picasso and support libraries that i am also using in my project. So, my dependencies look like this before adding zendesk:
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile 'com.android.support:appcompat-v7:21.+'
..
..
compile 'com.android.support:multidex:1.0.+'
compile 'com.squareup.picasso:picasso:2.4.0'
}
but if i add zendesk to the dependencies list
compile (group: 'com.zendesk', name: 'sdk', version: '1.0.0.1')
i get a NoClassDefFoundError for a class being referenced from the application sub class. And i am not even using zendesk sdk anywhere in the code for now.