Flutter error report solution:
Find your flutter installation directory, for example mine is ~/Library/flutter
goto ~/Library/flutter/packages/flutter_tools/gradle
Modify flutter.gradle, add mavenCentral() under google() of repositories in buildscript, and then run it. As follows
buildscript {
repositories {
google()
mavenCentral() // add this line
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
}
}
The error message is as follows:
* Error running Gradle:
ProcessException: Process "..\android\gradlew.bat" exited abnormally:
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 artifacts for configuration ':classpath'.
> Could not resolve com.google.auto.value:auto-value:1.5.2.
Required by:
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:bundletool:0.5.0
> Could not resolve com.google.auto.value:auto-value:1.5.2.
> Could not get resource 'https://jcenter.bintray.com/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.pom'.
> Read timed out
> Could not resolve org.jdom:jdom2:2.0.6.
Required by:
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-alpha10
> Skipped due to earlier error
> Could not resolve org.apache.commons:commons-compress:1.12.
Required by:
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1 > com.android.tools:repository:26.2.1
> Skipped due to earlier error
> Could not resolve javax.inject:javax.inject:1.
Required by:
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdk-common:26.2.1
> Skipped due to earlier error
> Could not resolve net.sf.kxml:kxml2:2.3.0.
Required by:
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools.build:manifest-merger:26.2.1
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools.ddms:ddmlib:26.2.1
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1 > com.android.tools.layoutlib:layoutlib-api:26.2.1
> Skipped due to earlier error
> Could not resolve com.google.code.findbugs:jsr305:1.3.9.
Required by:
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools.build:apkzlib:3.2.1
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.analytics-library:shared:26.2.1 > com.google.guava:guava:23.0
> Skipped due to earlier error
> Could not resolve com.google.j2objc:j2objc-annotations:1.1.
Required by:
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.analytics-library:shared:26.2.1 > com.google.guava:guava:23.0
> Skipped due to earlier error
> Could not resolve org.codehaus.mojo:animal-sniffer-annotations:1.14.
Required by:
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.analytics-library:shared:26.2.1 > com.google.guava:guava:23.0
> Skipped due to earlier error
> Could not resolve commons-logging:commons-logging:1.2.
Required by:
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.analytics-library:crash:26.2.1 > org.apache.httpcomponents:httpclient:4.5.2
> Skipped due to earlier error
> Could not resolve commons-codec:commons-codec:1.9.
Required by:
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.analytics-library:crash:26.2.1 > org.apache.httpcomponents:httpclient:4.5.2
> Skipped due to earlier error
> Could not resolve org.jetbrains.kotlin:kotlin-stdlib-common:1.2.71.
Required by:
project : > com.android.tools.build:gradle:3.2.1 > org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.71 > org.jetbrains.kotlin:kotlin-stdlib:1.2.71
> Skipped due to earlier error
> Could not resolve org.jetbrains:annotations:13.0.
Required by:
project : > com.android.tools.build:gradle:3.2.1 > org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.71 > org.jetbrains.kotlin:kotlin-stdlib:1.2.71
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1 > com.android.tools.layoutlib:layoutlib-api:26.2.1
> Skipped due to earlier error
> Could not resolve com.sun.activation:javax.activation:1.2.0.
Required by:
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1 > com.android.tools:repository:26.2.1
> Skipped due to earlier error
> Could not resolve org.glassfish.jaxb:jaxb-runtime:2.2.11.
Required by:
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1 > com.android.tools:repository:26.2.1
> Skipped due to earlier error
> Could not resolve com.google.jimfs:jimfs:1.1.
Required by:
project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1 > com.android.tools:repository:26.2.1
> Skipped due to earlier error
* 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 2m 12s
Command: C:\MyWorkCompany\Flutter\policies_manager\android\gradlew.bat app:properties
Finished with error: Please review your Gradle project setup in the android/ folder.
Read More:
- How to Solve Error “Could not find com.android.tools.build:gradle:3.0.1”
- jitpack.io ERROR: No build artifacts found [How to Solve]
- Android studio New kotlin project Error: org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21-release-315
- [Solved] Could not resolve all dependencies for configuration ‘:app:debugRuntimeClass
- [Solved] Gradle NullPointerException at com.android.build.gradle.internal.ndk.NdkHandler.getPlatformVersion
- Android Error:Internal error:org.gradle.tooling.BuildException: Could not execute build…
- Android Studio: Gradle project sync failed [How to Solve]
- Android studio version 3.0 import version 2.2.2 error Error:This Gradle plugin requires Studio 3.0 minimum
- [Solved] Flutter package flutter build apk Error: permission-handle
- [Solved] Android Gradle Build Error: Some file crunching failed, see logs for details
- [Solved] Flutter – AAPT: error: resource android:attr/dialogCornerRadius not found.
- [Solved] Android Studio Compile error: Cannot use connection to Gradle distribution . as it has been stopped.
- [Solved] Flutter compile error: Failed to find Build Tools revision 29.0.2
- [Solved] Android Studio Error: ERROR: Cause: executing external native build for cmake
- Flutter flutter doctor –android-licenses [How to Solve]
- Android Studio compile error: build tools is corrupt [Solved]
- [Solved] Android Studio Start Error: Missing essential plugin: org.jetbrains.android Please reinstall Android
- [Solved] Unity package Error: CommandInvokationFailure: Gradle build failed.
- [Solved] Android Studio Compile Error: Could not determine java version from ‘11.0.8‘.
- [Solved] Android Studio 4.1 get manifestOutputDirectory error