gradle build error while adding my lenovo android device - android

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.

Related

android studio 3.0.1 and kotlin v1.2.10-release-Studio3.0-1 got issue

I am using android studio 3.0.1 and I was going to use Kotlin.
I wrote some simple code and when application runs the android studio shows me below error:
Error:Gradle:
A problem occurred configuring root project 'Firstapp1'.
Could not resolve all files for configuration ':classpath'.
Could not resolve com.android.tools.build:gradle:3.0.1.
Required by:
project :
Could not resolve com.android.tools.build:gradle:3.0.1.
Could not parse POM https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom
Already seen doctype.
Gradle version: 4.1
Android plugin version : 3.0.1
Please help me to solve this problem!
Make sure the kotlin version used in gradle and the kotlin plugin version are the same like in the following snaps:
Version in gradle is 1.1.51
Version of the plugin installed is also 1.1.51
i solved that problem.thanks.i have a new problem...
Error:Gradle: A problem occurred configuring root project 'Firstapp1'.
Could not resolve all files for configuration ':classpath'.
Could not resolve com.android.tools.build:gradle:3.0.1.
Required by:
project :
Could not resolve com.android.tools.build:gradle:3.0.1.
Could not parse POM https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom
Already seen doctype.
Could not resolve com.android.tools.build:gradle:3.0.1.
Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'.
Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'.
Connect to jcenter.bintray.com:443 [jcenter.bintray.com/108.168.243.150] failed: Connection timed out: connect

project build failed in android studio

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

Could not resolve all dependencies for configuration

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

How to download gradle manually?

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

intellij new Android Gradle Project

I have the latest edition of Intellij.
After creating a blank Gradle Android Project I get the following error message when attempting to build the project:
Error:Gradle: A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find any version that matches com.android.support:appcompat-v7:19.+.
Required by:
test6:app:unspecified
How can I fix this?

Categories

Resources