Android studio 3.2.1 ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'
Just turn off the Toggle Offline Mode .
On the top right side of the Window .
Click on Gradle
2nd number option(just near of Setting option)
click on it then you will be able to do work continuously.
As you can see the image
Flutter problems: Could not resolve all artifacts for configuration ':classpath'
You're trying to use actual Gradle. For Android development, there's Android Gradle which is currently on version 3.5.3 which came out this month. Read this article: https://developer.android.com/studio/releases/gradle-plugin#3-5-0.
EDIT: To use the latest version of Android Gradle (3.5.3), you need Gradle versions between 5.4.1-5.6.4 which you can configure in the gradle-wrapper.properties
file. I guess Android Gradle doesn't yet support Gradle 6.
Could not resolve all dependencies for configuration ':classpath'
Right, I'm not sure if it will work for others but worked for me.
I changed proxyPort
to 8080 and used jcenter instead of Maven. But I had to apply expeption to use HTTP instead of HTTPS. This is what I have in my build.gradle for build script and allprojects
buildscript {
repositories {
jcenter {
url "http://jcenter.bintray.com/"
}
}
}
allprojects {
repositories {
jcenter {
url "http://jcenter.bintray.com/"
}
}
}
UPDATE: 06/08
I have recently updated Gradle and plugin version and had some problems. It was complaining about plugin com.android.application
I did some digging around and changed
jcenter {
url "http://jcenter.bintray.com/"
}
to
repositories {
maven { url 'http://repo1.maven.org/maven2' }
}
react-native run-android, Could not resolve all artifacts for configuration ':classpath'
The problem was caused by my location. I had to use a tunnel for this. In that moment I created an SSH account here https://www.dynamicssh.com/create-ssh
With SSH credentials it is possible to set a local tunnel. I use Linux, so the tunnel can be set with this command.
$ ssh -D 1337 -q -C -N youruser@yourserver.something
More details about it here: https://ma.ttias.be/socks-proxy-linux-ssh-bypass-content-filters/
In Windows, I think it is possible to use a tool called Bitvise SSH.
Defined the variables https_proxy and http_proxy on the terminal for localhost:1337 (The port is the one you use to set the tunnel in the previous step.) This is to use the tunnel in the terminal.
Then run the "react-native run-android", in the same terminal where https_proxy and http_proxy were set.
Thank to all who answered.
Best regards.
Could not resolve com.android.tools.build:gradle:3.2.1 on mac with android studio 3.3
Please update your android studio as well build:gradle with latest version.
Android Studio 3.4
Build #AI-183.5429.30.34.5452501, built on April 10, 2019
JRE: 1.8.0_152-release-1343-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
and
classpath 'com.android.tools.build:gradle:3.4.0'
Sometimes Issue might be possible due to version mismatching.
Related Topics
Noclassdeffounderror Below Sdk 21
How to Programmatically Scroll Android Webview
Android UI Design: Supporting Multiple Screens
Load Images from Disk Cache with Picasso If Offline
Access_Coarse_Location Permission Gives a Cell Tower Precision on Android
My Android Camera Uri Is Returning a Null Value, But the Samsung Fix Is in Place, Help
How Does One Implement Drag and Drop for Android Marker
Android: Broadcastreceiver Intent to Detect Camera Photo Taken
How to Set Up Multiple Listeners for One Event
Taking a "Screenshot" of a Specific Layout in Android
How to Get Chrome Browsing History/Bookmarks in Our Android App
In Espresso, How to Avoid Ambiguousviewmatcherexception When Multiple Views Match
Firebase Authentication State Change Does Not Fire When User Is Disabled or Deleted