Repository navigation
Closed
Description
Steps to Reproduce
Launching lib\main.dart on Letv X500 in debug mode...
Initializing gradle...
Resolving dependencies...
* Error running Gradle:
Exit code 1 from: D:\Program Files\Android\temp workspace\flutter_appp\android\gradlew.bat app:properties:
Parallel execution with configuration on demand is an incubating feature.
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 'D:\Program Files\Android\temp workspace\flutter_appp\android\app\build.gradle' line: 25
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not resolve all files for configuration 'classpath'.
> Could not find bundletool.jar (com.android.tools.build:bundletool:0.1.0-alpha01).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/bundletool/0.1.0-alpha01/bundletool-0.1.0-alpha01.jar
> 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
> Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.1.0).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/aapt2-proto/0.1.0/aapt2-proto-0.1.0.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 2s
Finished with error: Please review your Gradle project setup in the android/ folder.
Logs
D:\Program Files\Android\temp workspace\flutter_appp\foo>flutter run
Launching lib/main.dart on Letv X500 in debug mode...
Initializing gradle... 1.2s
Resolving dependencies...
* Error running Gradle:
Exit code 1 from: D:\Program Files\Android\temp workspace\flutter_appp\foo\android\gradlew.bat app:properties:
Parallel execution with configuration on demand is an incubating feature.
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 'D:\Program Files\Android\temp workspace\flutter_appp\foo\android\app\build.gradle' line: 25
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not resolve all files for configuration 'classpath'.
> Could not find bundletool.jar (com.android.tools.build:bundletool:0.1.0-alpha01).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/bundletool/0.1.0-alpha01/bundletool-0.1.0-alpha01.jar
> 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
> Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.1.0).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/aapt2-proto/0.1.0/aapt2-proto-0.1.0.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 2s
Please review your Gradle project setup in the android/ folder.
D:\Program Files\Android\temp workspace\flutter_appp>flutter doctor -v
[√] Flutter (Channel beta, v0.8.2, on Microsoft Windows [Version 10.0.17134.345], locale zh-CN)
• Flutter version 0.8.2 at D:\Develop\Flutter\flutter
• Framework revision 5ab9e70727 (5 weeks ago), 2018-09-07 12:33:05 -0700
• Engine revision 58a1894a1c
• Dart version 2.1.0-dev.3.1.flutter-760a9690c2
[√] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at D:\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.2
• ANDROID_HOME = D:\sdk
• Java binary at: D:\Develop\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[√] Android Studio (version 3.2)
• Android Studio at D:\Develop\Android\Android Studio
• Flutter plugin version 28.0.2
• Dart plugin version 181.5616
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[!] IntelliJ IDEA Ultimate Edition (version 2017.2)
• IntelliJ at D:\Develop\JetBrains\IntelliJ IDEA 2017.2.5
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins
[√] Connected devices (1 available)
• Letv X500 • E6C6TKSKCUDM7P4T • android-arm64 • Android 6.0 (API 23)
! Doctor found issues in 1 category.
Reacted by Patrick Boos, vvusts, Martin Niederl, desmese, Sky24n, farzint, dikongue and Vinoth
Activity
pboos commentedon Oct 23, 2018
Just had this start to appear on my builds (on build server) today. Even though I didn't change anything in the dependencies.
rodolph66 commentedon Oct 23, 2018
I have just finished setting up flutter on windows 10 with Android Studio...
FLutter doctor output:
However when I perform the test drive I get the following in studio's console:
I am unable to move beyond this. I have tried Visual Studio Code and it also failed..!
Fixes gradle error: 'Could not find lint-gradle-api.jar' (flutter#23095)
mrmitew commentedon Oct 23, 2018
Absolutely same thing here. I submitted a pull request that fixes it: #23397
DaviDeMo89 commentedon Oct 23, 2018
Same here... well I started to use flutter in the wrong time haha
mrmitew commentedon Oct 23, 2018
Take a look at the PR I submitted earlier. It resolves the issue.
DaviDeMo89 commentedon Oct 23, 2018
thank you, it's working
pboos commentedon Oct 24, 2018
Locally not having the problem even with same version and everything. My guess is that it is because the dependencies are already available locally. Even removing them from
~/.gradle/caches/modules-2/files-2.1/com.android.tools.lint/lint-gradle-api/didn't reproduce the error locally. Somehow it got them again from somewhere.To currently fix it in the server side build I do:
Since it runs in docker, I can run this command for every build just before
flutter build. But afterflutter upgradebecause otherwise it will get mad at you for having uncommited changes ;-).Sky24n commentedon Oct 24, 2018
Win10 OS run error
FAILURE: Build failed with an exception.
waleedbasit commentedon Oct 24, 2018
I don't understand how to fix it, I am facing the same problem. Can someone please explain it to me.
Sky24n commentedon Oct 24, 2018
@waleedbasit
Temporary solution:
9 remaining items
mrmitew commentedon Oct 25, 2018
It is evident from your error log that gradle isn't looking at the google's repo, but only at jcenter.
The
google()repo has to be added NOT in your gradle file, but in flutter's. A pull request was already merged that fixes the problem (not sure if it was also merged in the beta or only in master).ViasVegas commentedon Oct 25, 2018
I found the solution there : e93d19c#diff-d9b052388990c36138e397b5bb529025 thanks to @mrmitew .
Just find the flutter.gradle file in your folder : flutter/package/flutter_tool/gradle and add 'google()' to the buildscript. It fixed the issue for me.
OfficialSameer commentedon Oct 25, 2018
katyak commentedon Oct 31, 2018
@mrmitew solution worked for me. Thank you!
dnfield commentedon Oct 31, 2018
We will be releasing a new beta soon that contains the fix for this.
Fixes gradle error: 'Could not find lint-gradle-api.jar' (flutter#23095…
harikrishnabikki commentedon Nov 1, 2018
Making the answer Clear: All you have to do is go to your have your flutter installed and make sure maven is above jcenter in the flutter.gradle file

AmandaMML commentedon Nov 2, 2018
I've tried it. It doesn't work.
franckentien commentedon Nov 2, 2018
Perfectly work for me
Thanks
aizuddineismail commentedon Nov 2, 2018
@AmandaMML Did you try adding google() ? I only followed this and it works!
AmandaMML commentedon Nov 4, 2018
Now it works!! Thank you @aizuddineismail !!
Dhanabhon commentedon Nov 4, 2018
@aizuddineismail I've tried it. It Works!
Thanks
github-actions commentedon Aug 14, 2021
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.