while I installed android studio I faced so many errors! the last one is in building the project and I got this error I don't know how to fix it:
Error:A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugAndroidTestApkCopy'.
Could not resolve org.hamcrest:hamcrest-library:1.3.
Required by:
MyApplication:app:unspecified > com.android.support.test.espresso:espresso-core:2.2.2
Could not resolve org.hamcrest:hamcrest-library:1.3.
Could not get resource 'https: //jcenter.bintray.com/org/hamcrest/hamcrest-library/1.3/hamcrest-library-1.3.pom'.
Could not GET 'https: //jcenter.bintray.com/org/hamcrest/hamcrest-library/1.3/hamcrest-library-1.3.pom'.
jcenter.bintray.com
Could not resolve org.hamcrest:hamcrest-integration:1.3.
Required by:
MyApplication:app:unspecified > com.android.support.test.espresso:espresso-core:2.2.2
Could not resolve org.hamcrest:hamcrest-integration:1.3.
Could not get resource 'https://jcenter.bintray.com/org/hamcrest/hamcrest-integration/1.3/hamcrest-integration-1.3.pom'.
Could not GET 'https: //jcenter.bintray.com/org/hamcrest/hamcrest-integration/1.3/hamcrest-integration-1.3.pom'.
jcenter.bintray.com
Related
this is the error.
Error:A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not resolve com.android.support:appcompat-v7:25.+.
Required by:
MyApplication2:app:unspecified
Could not resolve com.android.support:appcompat-v7:25.+.
Failed to list versions for com.android.support:appcompat-v7.
Unable to load Maven meta-data from https://jcenter.bintray.com/com/android/support/appcompat-v7/maven-metadata.xml.
Could not GET 'https://jcenter.bintray.com/com/android/support/appcompat-v7/maven-metadata.xml'.
jcenter.bintray.com
please help...
I added this line in the dependencies tab under the app tab in studio.
compile 'com.android.support:support-v4:22.0.+'
And,finally it worked for me.
Getting below error for facebook-audience-network
Error:A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find ads:AdQuality:unspecified.
Searched in the following locations:
https://jcenter.bintray.com/ads/AdQuality/unspecified/AdQuality-unspecified.pom
https://jcenter.bintray.com/ads/AdQuality/unspecified/AdQuality-unspecified.jar
file:/Users/jaydonga/Library/Android/sdk/extras/android/m2repository/ads/AdQuality/unspecified/AdQuality-unspecified.pom
file:/Users/jaydonga/Library/Android/sdk/extras/android/m2repository/ads/AdQuality/unspecified/AdQuality-unspecified.jar
file:/Users/jaydonga/Library/Android/sdk/extras/google/m2repository/ads/AdQuality/unspecified/AdQuality-unspecified.pom
file:/Users/jaydonga/Library/Android/sdk/extras/google/m2repository/ads/AdQuality/unspecified/AdQuality-unspecified.jar
Required by:
Ganesha:app:unspecified > com.facebook.android:audience-network-sdk:4.12.0
When I run Studio, Grade Build shows the error message like this
Error:A problem occurred configuring project ':tiangua'.
Could not resolve all dependencies for configuration ':tiangua:_debugCompile'.
Could not find any version that matches com.github.mmin18.layoutcast:library:1.+.
Searched in the following locations:
file:/E:/android/adt/sdk/extras/android/m2repository/com/github/mmin18/layoutcast/library/maven-metadata.xml
file:/E:/android/adt/sdk/extras/android/m2repository/com/github/mmin18/layoutcast/library/
Required by:
code:tiangua:unspecified
I'm using Android Studio version 1.4 and stuck at "Gradle: resolve dependencies ':app:_releaseCompile'"
I think it cause by proxy (I don't have access to proxy) so i want to know how to download gradle maunally
I've tried all method that I found changing properties file, edit parameters but won't work anyway.
Error log:
Error:A problem occurred configuring project ':app'.
>Could not resolve all dependencies for configuration ':app:_debugUnitTestCompile'.
> Could not resolve junit:junit:4.12.
Required by:
prototype1:app:unspecified
> Could not resolve junit:junit:4.12.
> Could not get resource 'jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.
> Could not GET 'jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.
> Connection to jcenter.bintray.com refused
Error:(25) A problem occurred evaluating root project 'Side-Menu.Android-master'.
Failed to apply plugin [id 'android-reporting']
A problem occurred configuring project ':app'.
> A problem occurred configuring project ':library'.
> Could not resolve all dependencies for configuration ':library:_debugCompile'.
> Could not find com.android.support:appcompat-v7:21.0.3.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/appcompat-v7/21.0.3/appcompat-v7-21.0.3.pom
https://jcenter.bintray.com/com/android/support/appcompat-v7/21.0.3/appcompat-v7-21.0.3.jar
Required by:
com.yalantis:library:1.0
first time to use android studio and met the problem with this, help me !