Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Could not resolve all files for configuration ':classpath'." error #21600

Closed
1166544 opened this issue Sep 8, 2018 · 15 comments
Closed

"Could not resolve all files for configuration ':classpath'." error #21600

1166544 opened this issue Sep 8, 2018 · 15 comments
Labels
c: crash Stack traces logged to the console t: gradle "flutter build" and "flutter run" on Android tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@1166544
Copy link

1166544 commented Sep 8, 2018

Steps to Reproduce

  1. run debug in visual studio code
  2. Build failed with an exception.

image

Logs

Launching lib\main.dart on LLD AL20 in debug mode...

  • Error running Gradle:
    Exit code 1 from: D:\WorksFlutter\architecture_flutter\android\gradlew.bat app:properties:
    Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project 'android'.

Could not resolve all files for configuration ':classpath'.
Could not resolve com.android.tools.build:gradle:3.1.2.
Required by:
project :
> Could not resolve com.android.tools.build:gradle:3.1.2.
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.pom'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.pom'. Received status code 400 from server: Bad Request
> Could not resolve com.android.tools.build:gradle:3.1.2.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.pom'.
> Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.pom'. Received status code 400 from server: Bad Request

  • 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 14s

@zoechi
Copy link
Contributor

zoechi commented Sep 8, 2018

Please add the output of flutter doctor -v.

Is this an older project created with an earlier Flutter version or a new project?

@1166544
Copy link
Author

1166544 commented Sep 8, 2018

image

@1166544
Copy link
Author

1166544 commented Sep 8, 2018

It's an new project

@zoechi
Copy link
Contributor

zoechi commented Sep 8, 2018

Please don't post screenshots of text, post the text instead.
Screenshots are not searchable and it's not possible to copy-past text out of it.

@1166544
Copy link
Author

1166544 commented Sep 8, 2018

D:\WorksFlutter\architecture_flutter>flutter doctor -v
[√] Flutter (Channel beta, v0.7.3, on Microsoft Windows [Version 6.1.7601], locale zh-CN)
    • Flutter version 0.7.3 at D:\flutter
    • Framework revision 3b309bda07 (11 days ago), 2018-08-28 12:39:24 -0700
    • Engine revision af42b6dc95
    • Dart version 2.1.0-dev.1.0.flutter-ccb16f7282

[√] Android toolchain - develop for Android devices (Android SDK 28.0.2)
    • Android SDK at D:\Program Files (x86)\Android\android-sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.2
    • ANDROID_HOME = D:\Program Files (x86)\Android\android-sdk
    • Java binary at: D:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
    • All Android licenses accepted.

[√] Android Studio (version 3.1)
    • Android Studio at D:\Program Files\Android\Android Studio
    • Flutter plugin version 28.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] VS Code, 64-bit edition (version 1.27.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 2.18.0

[!] Connected devices
    ! No devices available

! Doctor found issues in 1 category.

@zoechi
Copy link
Contributor

zoechi commented Sep 8, 2018

Similar to #19719
Why did you create a new issue if you already found one for it?

@1166544
Copy link
Author

1166544 commented Sep 8, 2018

Sorry, i'm not sure. Is this problem related to the .net framework version? The two samples are quite different. At least in my sample, it didn't execute the steps of download.

@zoechi
Copy link
Contributor

zoechi commented Sep 8, 2018

Perhaps the download was done earlier already.
I don't understand how .net would be related (I saw the comment in #19719, but don't understand why it would help)

@zoechi zoechi added c: crash Stack traces logged to the console tool Affects the "flutter" command-line tool. See also t: labels. t: gradle "flutter build" and "flutter run" on Android labels Sep 8, 2018
@1166544
Copy link
Author

1166544 commented Sep 12, 2018

image
This problem has been solved because the domestic network environment in China will lead to the loss of certain files in the gradle version downloaded by Andrioid Studio.

My solution:

  1. delete all files in user directory C:\user\Administrator.gradle\wrapper\dists\gradle-4.4 folder
  2. go to the gradle official website to download the v4.4 gradle zip package and copy in to Step1 's folder
    3.Restart Android Studio

It works!

There is no any relationship with the.Net framework.
Reference links:
http://services.gradle.org/distributions/
https://developer.android.google.cn/studio/releases/gradle-plugin#updating-plugin

@lancyJD
Copy link

lancyJD commented Dec 5, 2018

image
This problem has been solved because the domestic network environment in China will lead to the loss of certain files in the gradle version downloaded by Andrioid Studio.

My solution:

  1. delete all files in user directory C:\user\Administrator.gradle\wrapper\dists\gradle-4.4 folder
  2. go to the gradle official website to download the v4.4 gradle zip package and copy in to Step1 's folder
    3.Restart Android Studio

It works!

There is no any relationship with the.Net framework.
Reference links:
http://services.gradle.org/distributions/
https://developer.android.google.cn/studio/releases/gradle-plugin#updating-plugin

Very nice!!!!!!!!!!

@sqskg
Copy link

sqskg commented May 17, 2019

finally, remove the proxy in .gradle/gradel.properties file,it works.

@Sudhar4
Copy link

Sudhar4 commented Jul 13, 2019

@zoechi
Iam getting this type of errors while running my project
FAILURE: Build failed with an exception.

What went wrong:
Could not resolve all files for configuration ':path_provider:lintClassPath'.
Could not download groovy-all.jar (org.codehaus.groovy:groovy-all:2.4.12)
Could not get resource 'https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.jar'.

Read timed out

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 5m 48s
Finished with error: Gradle task assembleDebug failed with exit code 1

@jatinjain001
Copy link

I am using latest gradle version 5.6 and all I am also getting this error

@emailsubjekt
Copy link

I also have this error, can't solve it, I've tried almost everything I know

Launching lib\main.dart on SM G930F in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':flutter_bluetooth_serial'.

Could not resolve all artifacts for configuration ':flutter_bluetooth_serial:classpath'.
Could not find com.google.flatbuffers:flatbuffers-java:1.12.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/flatbuffers/flatbuffers-java/1.12.0/flatbuffers-java-1.12.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1
Could not find org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/tensorflow/tensorflow-lite-metadata/0.1.0-rc2/tensorflow-lite-metadata-0.1.0-rc2.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1
Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4.31/kotlin-stdlib-jdk8-1.4.31.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:aaptcompiler:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.lint:lint-gradle-api:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:gradle-api:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > androidx.databinding:databinding-compiler-common:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.build:builder-model:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdk-common:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:common:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.build:manifest-merger:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.analytics-library:tracker:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.lint:lint-gradle-api:27.2.1 > com.android.tools.lint:lint-model:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdklib:27.2.1 > com.android.tools:repository:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdk-common:27.2.1 > com.android.tools.analytics-library:shared:27.2.1
Could not find org.ow2.asm:asm:7.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/ow2/asm/asm/7.0/asm-7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:gradle-api:4.2.1
Could not find org.ow2.asm:asm-analysis:7.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-analysis/7.0/asm-analysis-7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1
Could not find org.ow2.asm:asm-commons:7.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-commons/7.0/asm-commons-7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1
Could not find org.ow2.asm:asm-util:7.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-util/7.0/asm-util-7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1
Could not find net.sf.jopt-simple:jopt-simple:4.9.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1
Could not find net.sf.proguard:proguard-gradle:6.0.3.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/net/sf/proguard/proguard-gradle/6.0.3/proguard-gradle-6.0.3.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1
Could not find com.squareup:javapoet:1.10.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/squareup/javapoet/1.10.0/javapoet-1.10.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > androidx.databinding:databinding-compiler-common:4.2.1
Could not find com.google.protobuf:protobuf-java:3.10.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/protobuf/protobuf-java/3.10.0/protobuf-java-3.10.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:aapt2-proto:4.2.1-7147631
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdk-common:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.ddms:ddmlib:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.analytics-library:protos:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.analytics-library:tracker:27.2.1
Could not find com.google.protobuf:protobuf-java-util:3.10.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/protobuf/protobuf-java-util/3.10.0/protobuf-java-util-3.10.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1
Could not find com.google.crypto.tink:tink:1.3.0-rc2.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/crypto/tink/tink/1.3.0-rc2/tink-1.3.0-rc2.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1
Could not find com.squareup:javawriter:2.5.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1
Could not find org.bouncycastle:bcpkix-jdk15on:1.56.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdk-common:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.build:apkzlib:4.2.1
Could not find org.bouncycastle:bcprov-jdk15on:1.56.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdk-common:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.build:apkzlib:4.2.1
Could not find org.ow2.asm:asm-tree:7.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-tree/7.0/asm-tree-7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1
Could not find javax.inject:javax.inject:1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/javax/inject/javax.inject/1/javax.inject-1.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:bundletool:1.1.0
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdk-common:27.2.1
Could not find it.unimi.dsi:fastutil:8.4.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/it/unimi/dsi/fastutil/8.4.0/fastutil-8.4.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1
Could not find com.googlecode.json-simple:json-simple:1.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1
Could not find com.google.guava:guava:28.1-jre.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/guava/guava/28.1-jre/guava-28.1-jre.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:aaptcompiler:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.analytics-library:crash:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.lint:lint-gradle-api:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:gradle-api:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > androidx.databinding:databinding-compiler-common:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:common:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.analytics-library:tracker:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdk-common:27.2.1 > com.android.tools.analytics-library:shared:27.2.1
Could not find org.apache.httpcomponents:httpmime:4.5.6.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/apache/httpcomponents/httpmime/4.5.6/httpmime-4.5.6.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.analytics-library:crash:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdklib:27.2.1
Could not find org.apache.httpcomponents:httpcore:4.4.10.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/apache/httpcomponents/httpcore/4.4.10/httpcore-4.4.10.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.analytics-library:crash:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdklib:27.2.1
Could not find org.apache.httpcomponents:httpclient:4.5.6.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/apache/httpcomponents/httpclient/4.5.6/httpclient-4.5.6.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.analytics-library:crash:27.2.1
Could not find org.jetbrains.kotlin:kotlin-reflect:1.4.31.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-reflect/1.4.31/kotlin-reflect-1.4.31.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.lint:lint-gradle-api:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdk-common:27.2.1
Could not find org.antlr:antlr4:4.5.3.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/antlr/antlr4/4.5.3/antlr4-4.5.3.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > androidx.databinding:databinding-compiler-common:4.2.1
Could not find commons-io:commons-io:2.4.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/commons-io/commons-io/2.4/commons-io-2.4.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > androidx.databinding:databinding-compiler-common:4.2.1
Could not find com.googlecode.juniversalchardet:juniversalchardet:1.0.3.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > androidx.databinding:databinding-compiler-common:4.2.1
Could not find com.google.code.gson:gson:2.8.6.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/code/gson/gson/2.8.6/gson-2.8.6.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > androidx.databinding:databinding-compiler-common:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdklib:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.build:manifest-merger:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdk-common:27.2.1 > com.android.tools.analytics-library:shared:27.2.1
Could not find org.glassfish.jaxb:jaxb-runtime:2.3.2.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/glassfish/jaxb/jaxb-runtime/2.3.2/jaxb-runtime-2.3.2.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > androidx.databinding:databinding-compiler-common:4.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdklib:27.2.1 > com.android.tools:repository:27.2.1
Could not find com.google.auto.value:auto-value-annotations:1.6.2.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/auto/value/auto-value-annotations/1.6.2/auto-value-annotations-1.6.2.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:bundletool:1.1.0
Could not find com.google.errorprone:error_prone_annotations:2.3.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/errorprone/error_prone_annotations/2.3.1/error_prone_annotations-2.3.1.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:bundletool:1.1.0
Could not find com.google.guava:guava:28.1-jre.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/guava/guava/28.1-jre/guava-28.1-jre.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:bundletool:1.1.0
Could not find com.google.protobuf:protobuf-java:3.10.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/protobuf/protobuf-java/3.10.0/protobuf-java-3.10.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:bundletool:1.1.0
Could not find com.google.protobuf:protobuf-java-util:3.10.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/protobuf/protobuf-java-util/3.10.0/protobuf-java-util-3.10.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:bundletool:1.1.0
Could not find com.google.dagger:dagger:2.28.3.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/dagger/dagger/2.28.3/dagger-2.28.3.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:bundletool:1.1.0
Could not find com.google.code.gson:gson:2.8.6.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/code/gson/gson/2.8.6/gson-2.8.6.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build.jetifier:jetifier-core:1.0.0-beta09
Could not find org.jetbrains.kotlin:kotlin-stdlib:1.3.60.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.3.60/kotlin-stdlib-1.3.60.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build.jetifier:jetifier-core:1.0.0-beta09
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09
Could not find org.ow2.asm:asm:7.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/ow2/asm/asm/7.0/asm-7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09
Could not find org.ow2.asm:asm-util:7.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-util/7.0/asm-util-7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09
Could not find org.ow2.asm:asm-commons:7.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-commons/7.0/asm-commons-7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09
Could not find org.jdom:jdom2:2.0.6.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jdom/jdom2/2.0.6/jdom2-2.0.6.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09
Could not find org.apache.commons:commons-compress:1.12.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/apache/commons/commons-compress/1.12/commons-compress-1.12.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdklib:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdklib:27.2.1 > com.android.tools:repository:27.2.1
Could not find org.jetbrains.intellij.deps:trove4j:1.0.20181211.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jetbrains/intellij/deps/trove4j/1.0.20181211/trove4j-1.0.20181211.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdk-common:27.2.1
Could not find xerces:xercesImpl:2.12.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/xerces/xercesImpl/2.12.0/xercesImpl-2.12.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdk-common:27.2.1
Could not find net.sf.kxml:kxml2:2.3.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.build:manifest-merger:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.ddms:ddmlib:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:aaptcompiler:4.2.1 > com.android.tools.layoutlib:layoutlib-api:27.2.1
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.lint:lint-gradle-api:27.2.1 > com.android.tools.lint:lint-model:27.2.1
Could not find com.google.code.findbugs:jsr305:1.3.9.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.build:apkzlib:4.2.1
Could not find com.google.guava:guava:28.1-jre.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/guava/guava/28.1-jre/guava-28.1-jre.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.build:apkzlib:4.2.1
Could not find org.jetbrains:annotations:13.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jetbrains/annotations/13.0/annotations-13.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:aaptcompiler:4.2.1 > com.android.tools.layoutlib:layoutlib-api:27.2.1
Could not find com.sun.activation:javax.activation:1.2.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdklib:27.2.1 > com.android.tools:repository:27.2.1
Could not find com.google.jimfs:jimfs:1.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/jimfs/jimfs/1.1/jimfs-1.1.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdklib:27.2.1 > com.android.tools:repository:27.2.1
Could not find net.java.dev.jna:jna-platform:5.6.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/net/java/dev/jna/jna-platform/5.6.0/jna-platform-5.6.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :flutter_bluetooth_serial > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdk-common:27.2.1 > com.android.tools.analytics-library:shared:27.2.1
Could not get unknown property 'android' for project ':flutter_bluetooth_serial' of type org.gradle.api.Project.

  • 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 15s
The build failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetifier to solve the incompatibility.
Building plugin flutter_bluetooth_serial...
Running Gradle task 'assembleAarRelease'...
Exception: The plugin flutter_bluetooth_serial could not be built due to the issue above.

@github-actions
Copy link

github-actions bot commented Aug 1, 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 -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: crash Stack traces logged to the console t: gradle "flutter build" and "flutter run" on Android tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

No branches or pull requests

7 participants