Flutter Error running Gradle: ProcessException: Process "/home/benny/Documents/Afiaanyi/clone/mobile_app_codes/android/gradlew" exited abnormally - flutter

I have a flutter application am suppose to make little changes on, but the flutter is not running on my system, its showing many errors
Error running Gradle:
ProcessException: Process "/home/benny/Documents/Afiaanyi/clon/mobile_app_codes/android/gradlew" exited abnormally:
Starting a Gradle Daemon (subsequent builds will be faster)
Configure project :app
Observed package id 'system-images;android-26;google_apis;x86' in inconsistent location '/home/benny/Android/Sdk/system-images/android-27/google_apis/x86' (Expected '/home/benny/Android/Sdk/system-images/android-26/google_apis/x86')
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Configure project :connectivity
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':connectivity'.
Could not resolve all artifacts for configuration ':connectivity:classpath'.
Could not download kotlin-stdlib-jdk7.jar (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.11)
Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.3.11/kotlin-stdlib-jdk7-1.3.11.jar'.
Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.3.11/kotlin-stdlib-jdk7-1.3.11.jar'. Received status code 504 from server: Gateway Time-out
Could not download kotlin-stdlib.jar (org.jetbrains.kotlin:kotlin-stdlib:1.3.11)
Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.3.11/kotlin-stdlib-1.3.11.jar'.
Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.3.11/kotlin-stdlib-1.3.11.jar'. Received status code 502 from server: Bad Gateway
Could not download jsr305.jar (com.google.code.findbugs:jsr305:3.0.2)
Could not get resource 'https://jcenter.bintray.com/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar'.
Could not GET 'https://jcenter.bintray.com/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar'.
Remote host closed connection during handshake
Could not download checker-qual.jar (org.checkerframework:checker-qual:2.5.2)
Could not get resource 'https://jcenter.bintray.com/org/checkerframework/checker-qual/2.5.2/checker-qual-2.5.2.jar'.
Could not GET 'https://jcenter.bintray.com/org/checkerframework/checker-qual/2.5.2/checker-qual-2.5.2.jar'. Received status code 502 from server: Bad Gateway
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 8m 46s
Command: /home/benny/Documents/Afiaanyi/clone/mobile_app_codes/android/gradlew app:properties
Pls how can i debug this one step by step to fix all errors
Thanks for stopping to help

Are you in Europe? We had the same for the most of the day since noon.
Here is their Incident Report for today's issue:
https://status.bintray.com/incidents/nmtzpzv59hsd

Related

FAILURE: Build failed with an exception.(audio_query)

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!

What is the solution for Execution failed for task ':cloud_firestore:extractDebugAnnotations'.?

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

I get this message while run the code which I got it from codecanyon?

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 got error message after i install image_picker flutter

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

How to use ngcordova facebook and push notification plugins in single ionic app

when i am using ngCordova facebook and pushNotification plugins in same app and build the app then find the following error.
========================================================================
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)
FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':dexDebug'.
com.android.ide.common.internal.LoggedErrorException: Failed to run command:
/opt/android-sdk-linux/build-tools/23.0.1/dx --dex --no-optimize --output /home/anurag/my-works/fbPush/platforms/android/build/intermediates/dex/debug --input-list=/home/anurag/my-works/fbPush/platforms/android/build/intermediates/tmp/dex/debug/inputList.txt
Error Code:
2
Output:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 38.579 secs
/home/anurag/my-works/fbPush/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /home/anurag/my-works/fbPush/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/anurag/my-works/fbPush/platforms/android/build.gradle,-Dorg.gradle.daemon=true
I had the same issue on my app and i solved it by removing my cordova facebook plugin and adding this one : https://github.com/jeduan/cordova-plugin-facebook4
My push notification plugin is : phonegap-plugin-push