FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':launcher'.
Could not resolve all artifacts for configuration ':launcher:classpath'.
Could not find com.android.tools.build:gradle:6.1.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/6.1.1/gradle-6.1.1.pom
- https://jcenter.bintray.com/com/android/tools/build/gradle/6.1.1/gradle-6.1.1.pom
Required by:
project :launcher
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 1s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Related
What went wrong:
A problem occurred configuring root project 'android'.
Could not resolve all dependencies for configuration ':classpath'.
Could not load module metadata from C:\Users\Pemula.gradle\caches\modules-2\metadata-2.96\descriptors\com.google.code.findbugs\jsr305\3.0.2\a8be1fe3b3911d3d3425fe720cf42835\descriptor.bin
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 11s
Exception: Gradle task assembleDebug failed with exit code 1
Below error occurred while running command ionic cordova build android. But when I check the location mentioned in the error, the file exists still getting this error.
Task :app:checkDebugAarMetadata FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find :tbxml-android:.
Searched in the following locations:
- file:/S:/Developer/Projects/driver-app/platforms/android/app/src/main/libs/tbxml-android.aar
- file:/S:/Developer/Projects/driver-app/platforms/android/app/libs/tbxml-android.aar
- file:/S:/Developer/Projects/driver-app/platforms/android/libs/tbxml-android.aar
Required by:
project :app
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.
While build the app get an error like
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':background_locator'.
> Could not load compiled classes for build file 'C:\flutter\.pub-cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\build.gradle' from cache.
* 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 23s
Exception: Gradle task assembleDebug failed with exit code 1
How to solve this issue
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
Could not find lifecycle-common-java8-2.2.0.jar (androidx.lifecycle:lifecycle-common-java8:2.2.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-common-java8/2.2.0/lifecycle-common-java8-2.2.0.jar
Could not find lifecycle-common-2.2.0.jar (androidx.lifecycle:lifecycle-common:2.2.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-common/2.2.0/lifecycle-common-2.2.0.jar
Could not find core-common-2.1.0.jar (androidx.arch.core:core-common:2.1.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/arch/core/core-common/2.1.0/core-common-2.1.0.jar
Could not find collection-1.1.0.jar (androidx.collection:collection:1.1.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/collection/collection/1.1.0/collection-1.1.0.jar
Could not find annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/annotation/annotation/1.1.0/annotation-1.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.
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/annotation/annotation/1.1.0/annotation-1.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 22s
Running Gradle task 'assembleDebug'... 25.2s
Exception: Gradle task assembleDebug failed with exit code 1
Get more help at https://help.gradle.org
BUILD FAILED in 22s
Running Gradle task 'assembleDebug'... 25.2s
Exception: Gradle task assembleDebug failed with exit code 1
Can any one have any idea why this error happening.
Launching lib\main.dart on SM G900H in debug mode...
Initializing gradle...
Resolving dependencies...
Error running Gradle:
Exit code 1 from: D:\NewFlutter\App\testapp\flutter_app\android\gradlew.bat app:properties:
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 find gradle.jar (com.android.tools.build:gradle:3.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.2/gradle-3.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 21s
Finished with error: Please review your Gradle project setup in the android/ folder.