Facing this error during runtime in flutter
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':cloud_firestore:extractDebugAnnotations'.
Could not resolve all files for configuration ':cloud_firestore:detachedConfiguration2'.
Could not download kotlin-compiler-30.1.2.jar (com.android.tools.external.com-intellij:kotlin-compiler:30.1.2)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/30.1.2/kotlin-compiler-30.1.2.jar'.
> Premature end of Content-Length delimited message body (expected: 39,870,124; received: 4,456,416)
Could not download groovy-3.0.8.jar (org.codehaus.groovy:groovy:3.0.8)
> Could not get resource 'https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy/3.0.8/groovy-3.0.8.jar'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy/3.0.8/groovy-3.0.8.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 14m 46s
Related
I am creating a music player app..when I am trying to run app, the app was stopped and shows this error
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':on_audio_query:parseDebugLocalResources'.
Could not resolve all files for configuration ':on_audio_query:androidApis'.
Failed to transform android.jar to match attributes {artifactType=android-platform-attr, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
Execution failed for PlatformAttrTransform: C:\Users\ACER\AppData\Local\Android\sdk\platforms\android-30\android.jar.
C:\Users\ACER\AppData\Local\Android\sdk\platforms\android-30\android.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 15s
Exception: Gradle task assembleDebug failed with exit code 1
Can anyone tell me, what is the problem occuring in audioquery? or please help me to find the solution!
Launching lib\main.dart on SM N960F in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
What went wrong:
Could not determine the dependencies of task ':braintree_payment:compileDebugAidl'.
Could not resolve all task dependencies for configuration ':braintree_payment:debugCompileClasspath'.
Could not resolve org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.2.1-2.
Required by:
project :braintree_payment > com.braintreepayments.api:three-d-secure:3.7.2
> Could not resolve org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.2.1-2.
> Could not get resource 'https://cardinalcommerce.bintray.com/android/org/jfrog/cardinalcommerce/gradle/cardinalmobilesdk/2.2.1-2/cardinalmobilesdk-2.2.1-2.pom'.
> Could not GET 'https://cardinalcommerce.bintray.com/android/org/jfrog/cardinalcommerce/gradle/cardinalmobilesdk/2.2.1-2/cardinalmobilesdk-2.2.1-2.pom'. Received status code 403 from server: Forbidden
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 19s
Exception: Gradle task assembleDebug failed with exit code 1
You are getting 403 Forbidden (error's last line). It means you don't have permission to access.
Received status code 403 from server: Forbidden
I am sorry, I have searched but seem that all the answers don't fix my problem. I got this error when trying to run my flutter app.
FAILURE: Build failed with an exception.
* What went wrong:
java.net.BindException: Address already in use: Cannot bind
* 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
Exception: Gradle task assembleDebug failed with exit code 1
I installed image_picker after that I get error message when i start app
this is error log
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> File 'com.android.builder.files.ZipCentralDirectory#40b49de9' was deleted, but previous version not found in 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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> File 'com.android.builder.files.ZipCentralDirectory#5bca7644' was deleted, but previous version not found in 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 26s
Exception: Gradle task assembleDebug failed with exit code 1
what is this problem??
how can i solve this ~?
The error happened when you were installing it
So first check the steps again :
https://pub.dev/packages/image_picker
If not work, try to recover AndroidManifest.xml again and follow the instructions
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:mergeDebugResources'.
Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
Failed to transform artifact 'aapt2-windows.jar (com.android.tools.build:aapt2:3.5.0-5435860)' to match attributes {artifactType=_internal-android-aapt2-binary, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
Execution failed for Aapt2Extractor: C:\Users\User.gradle\caches\modules-2\files-2.1\com.android.tools.build\aapt2\3.5.0-5435860\e8565f11a238b905299000292dded060de0317ea\aapt2-3.5.0-5435860-windows.jar.
java.io.FileNotFoundException: File does not exist: C:\Users\User.gradle\caches\transforms-2\files-2.1\c5a4a6d176b090b56aa3954ad04c2af5\aapt2-3.5.0-5435860-windows
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