Error:(27, 13) Failed to resolve: org.quanqi:android-view-pager-indicator:0.9.0
.....
Error:(29, 13) Failed to resolve: com.astuetz:pagerslidingtabstrip:1.0.1
....
Error:(28, 13) Failed to resolve: com.sothree.slidinguppanel:library:3.1.1
....
My gradle dependencies are
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
//testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:design:23.0.1'
compile 'org.quanqi:android-view-pager-indicator:0.9.0'
compile 'com.sothree.slidinguppanel:library:3.1.1'
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
}
my proxy is set in gradle.properties...(credentials not shown)
systemProp.http.proxyPassword=xxxxxx
systemProp.http.proxyHost=x.x.x.x
systemProp.http.proxyUser=xx#x.com
systemProp.http.proxyPort=8080
Still gradle build is failing... when I am building the project outside firewall its working perfect, no proxy required then. I am using Android Studio 1.4
I have already tried the following and was not successful:-
Using ViewPagerIndicator library with Android Studio and Gradle
Use HTTP as default in IntelliJ or Android Studio
I have already configured proxy settings for Andriod Studio and SDK.
This three r library projects and it is added as
in build.gradle import library module as
compile project(':library_projectname')
The add this line in settings.gradle
include ':app', ':library_projectname'
Related
I downloaded Android Studio for the first time and encountered a problem:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.1'
testCompile 'junit:junit:4.12'
On a another dock appeared:
ERROR: Failed to resolve: com.android.support.constraint:constraint-layout:1.0.1
Show in Project Structure dialog
Affected Modules: app
Where and how can I resolved the issue?
I believe the error is with constraint-layout:1.0.1 but I can't seem to find solution else where.
You should connect to internet and sync project with gradle and gradle will download neccessary files.if you have problem to connect to the internet to download gradle, you can set http proxy this way :
File->Settings->search for Proxy->select Manual proxy configuration->HTTP
Host name:[yourHost] Port number:[yourPort]
you need to change the Host name to the proxy you use
ERROR: Failed to resolve: com.android.support.constraint:constraint-layout:1.0.1 Show in Project Structure dialog Affected Modules: app
It's probably because incompatibility with the recent Android Studio. You can try using version 1.0.2 with:
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
don't forget to add the google() maven to your build.gradle.
See the artifacts at https://mvnrepository.com/artifact/com.android.support.constraint/constraint-layout
But, you should consider upgrading your project to AndroidX. See Migrating to AndroidX.
I recently migrated from Eclipse to Android Studio and I'm using Android Studio 1.5.1. Before when I started Android Studio, I got this error:
Failed to resolve: junit:junit:4.12
After searching in Google and trying some proposed options, only commenting junit test in app/build.gradle solved the problem:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
// testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.android.support:design:23.0.0'
}
But I want to know is this a good and safe option to resolve that problem? For example does it cause any problem in future?
You will need to add the following to your build.gradle file and it should work fine.
repositories {
maven { url 'http://repo1.maven.org/maven2' }
}
one that says, Error:A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find com.android.support:appcompat-v7:21.1.2.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/appcompat-v7/21.1.2/appcompat-v7-21.1.2.pom
https://jcenter.bintray.com/com/android/support/appcompat-v7/21.1.2/appcompat-v7-21.1.2.jar
file:/C:/Users/Richard/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/21.1.2/appcompat-v7-21.1.2.pom
file:/C:/Users/Richard/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/21.1.2/appcompat-v7-21.1.2.jar
file:/C:/Users/Richard/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/21.1.2/appcompat-v7-21.1.2.pom
file:/C:/Users/Richard/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/21.1.2/appcompat-v7-21.1.2.jar
Required by:
MyApplication:app:unspecified
And another one that says:
Error:(28, 13) Failed to resolve: com.android.support:appcompat-v7:21.1.2
Install Repository and sync project<br>Show in File<br>Show in Project Structure dialog
The Appcompat v 21.1.2 doesn't exist.
Check here the releases.
You can use:
You can use one of these:
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.android.support:appcompat-v7:22.1.0'
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:appcompat-v7:21.0.2'
compile 'com.android.support:appcompat-v7:21.0.0'
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'm trying to setup nhaarman/ListViewAnimations inside of Android Studio 1.1.0.
From Setup:
Add the following to your build.gradle:
repositories {
mavenCentral()
}
dependencies {
compile 'com.nhaarman.listviewanimations:lib-core:3.1.0#aar'
compile 'com.nhaarman.listviewanimations:lib-manipulation:3.1.0#aar'
compile 'com.nhaarman.listviewanimations:lib-core-slh:3.1.0#aar'
}
yet Android Studio says:
Gradle project sync failed. Basic functionality (e.g. editing,
debugging) will not work properly.
Error:(26, 0) Gradle DSL method not found: 'compile()'
Possible causes:<ul><li>The project 'X' may be using a version of Gradle that does not contain the method.
Gradle settings</li><li>The build file may be missing a Gradle plugin.
Apply Gradle plugin</li>
You are adding these dependencies in the top level build.gradle file.
You have to add these lines in the module build.gradle file.
root
build.gradle //top level
app
build.gradle //module level
After adding those lines to:
build.gradle (Module: app)
instead of
build.gradle (Project: app)
the error is gone.
Try this:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.nhaarman.listviewanimations:lib-core:3.1.0'
compile 'com.nhaarman.listviewanimations:lib-manipulation:3.1.0'
}
Try removing #arr. worked for me.
//ListView Animations
compile 'com.nhaarman.listviewanimations:lib-core:3.1.0'
compile 'com.nhaarman.listviewanimations:lib-manipulation:3.1.0'