You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Could not resolve all artifacts for configuration 'classpath' #23553
Finished with error: Please review your Gradle project setup in the android/ folder.
* Error running Gradle:
ProcessException: Process "/Users/../Desktop/flutter_app/android/gradlew" exited abnormally:
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/../Desktop/flutter_app/android/app/build.gradle' line: 25
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not resolve all artifacts for configuration 'classpath'.
> Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.1.2/lint-gradle-api-26.1.2.jar
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
Command: /Users/../Desktop/flutter_app/android/gradlew app:properties`
Same here. This is fixed in master but not under stable release yet. For now, I would suggest switching to master branch and wait for the fix to be released.
I faced this error after upgrading to Flutter 1.12.13+hotfix.5 :
Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
> Could not download flutter_embedding_debug.jar (io.flutter:flutter_embedding_debug:1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695)
> Could not get resource 'http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695/flutter_embedding_debug-1.0.0-2994f7e1e682039464cb25e31a78b86a3c59b695.jar'.
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'.
i Dont know why am getting this error......
THIS IS MY build.gradle
pls i dont know what to do
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
this is outrageous
the whole subsystem, surrounding gradle needs to be torn out honked and redesigned and replaced
I have never seen such lengthy issues on incomplete gradle mechanisms
and they still havent gotten it right
i spent days/weeks June 2019 on same gradle wrapper transient dependencies omissions and now its impact8in my development schedule again
WHEN WILL THEY FINALLY DESIGN SOMETHING THATS CONFIGURABLE FROM THE ROOT FILE CONFIG.XML AND BE DONE WITH IT... environment variables anyone ?
I know if Im going to shoot my mouth off I should do it myself
well its simple
a root environment variable that trickles down thru the whole archetype
DONE
and maybe a flag for caching to prevent tangled repo jars
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
jsakars commentedon Oct 26, 2018
Same here. This is fixed in master but not under stable release yet. For now, I would suggest switching to master branch and wait for the fix to be released.
#23095
Here is the commit - 125b5d6
zoechi commentedon Oct 27, 2018
Merging with #23404
sumation commentedon Nov 1, 2018
same issue
Parth1029 commentedon Nov 2, 2018
I solved the problem by moving :
in the top of:
in the file:
.flutter/packages/flutter_tools/gradle/flutter.gradle:sumation commentedon Nov 2, 2018
songyiYu commentedon Nov 2, 2018
@Parth1029 It is solved! Thank you 👍
Sly777 commentedon Nov 2, 2018
@Parth1029 thanks it works on my app as well!
rravithejareddy commentedon Nov 3, 2018
still i am facing the issue.
xring commentedon Nov 5, 2018
@ Parth1029 Great work! Thx.
rravithejareddy commentedon Nov 5, 2018
@Parth1029 still i am facing the issue, i tried to adding google(), but still i am getting same issue.
marianoarga commentedon Nov 12, 2018
Upgrading Flutter should fix it @rravithejareddy
rravithejareddy commentedon Nov 13, 2018
Fixed by adding
google()influtter.gradle. Thanks.yefeidd commentedon Nov 23, 2018
I solved the problem.
File->setting->build->Gradle->Android studio
checked "Enable embedded Maven repository".
ethanyou725 commentedon Dec 16, 2018
13 remaining items
aboutmydreams commentedon Nov 15, 2019
not work. I'm dying really too
flutteradv commentedon Dec 17, 2019
I faced this error after upgrading to Flutter 1.12.13+hotfix.5 :
onemanstartup commentedon Dec 18, 2019
@flutteradv Update flutter, Accept android licences flutter
doctor --android-licenses, runflutter cleanflutteradv commentedon Dec 19, 2019
I ended up reverting back to flutter 1.9.1
shaileshpanthee commentedon Dec 31, 2019
I couldn't find the file
.flutter. Where is the.flutterdir located?thesidecommit commentedon Jan 12, 2020
It Worked!
thesidecommit commentedon Jan 12, 2020
.flutter is just a convention, here '.flutter' is the path where you extracted or installed flutter in your system. Hope this helps you.
Niek-Okido commentedon Feb 6, 2020
edit the following in build.gradle :
succygoldbaji commentedon Mar 22, 2020
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'.
i Dont know why am getting this error......
THIS IS MY build.gradle
pls i dont know what to do
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
}
allprojects {
repositories {
google()
jcenter()
}
task clean(type: Delete) {
delete rootProject.buildDir
}
derekgithubs commentedon Mar 23, 2020
I solved it by....
NOTE: Now make sure you have internet.
.....Now wait for it to finish download some stuffs, then you are good......
It worked for me, i'm using Windows...
MEANSTACKDIGITAL commentedon Apr 3, 2020
this is outrageous
the whole subsystem, surrounding gradle needs to be torn out honked and redesigned and replaced
I have never seen such lengthy issues on incomplete gradle mechanisms
and they still havent gotten it right
i spent days/weeks June 2019 on same gradle wrapper transient dependencies omissions and now its impact8in my development schedule again
WHEN WILL THEY FINALLY DESIGN SOMETHING THATS CONFIGURABLE FROM THE ROOT FILE CONFIG.XML AND BE DONE WITH IT... environment variables anyone ?
I know if Im going to shoot my mouth off I should do it myself
well its simple
a root environment variable that trickles down thru the whole archetype
DONE
and maybe a flag for caching to prevent tangled repo jars
Sylvester-dev commentedon Apr 8, 2020
@gayanramyakumara I am also facing same issue can i know how you solved this issue.
MEANSTACKDIGITAL commentedon Apr 8, 2020
i went with capacitor
instead of treating the android like a build artifact it treats it as a source artifact
completely configurable
lock commentedon Apr 25, 2020
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.