gradle assembleRelease crashlyticsUploadDistributionRelease Failed - android

Can anyone helep me on this while running below command build fails
gradle assembleRelease crashlyticsUploadDistributionRelease
FAILURE: Build failed with an exception.
Where:
Build file '/home/ubuntu/clarks-select-android/app/build.gradle' line: 10
What went wrong:
A problem occurred evaluating project ':app'.
org/gradle/initialization/BuildCompletionListener
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: 10.322 secs

Related

Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 912

I started getting this error after the last update.
FAILURE: Build failed with an exception.
Where: Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line:
912
What went wrong: A problem occurred evaluating root project 'android'.
A problem occurred configuring project ':app'.
Could not create task ':app:packLibsflutterBuildDebug'.
> No signature of method: org.gradle.api.tasks.bundling.Jar.destinationDir() is applicable for
argument types: (File) values:
[C:\Users\gurka\OneDrive\Belgeler\GitHub\projectname\build\app\intermediates\flutter\debug]
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
BU�LD FAILED in 2s
I tried flutter clean e.g
flutter run -v result

Why does cordova throw an error when I want to build my ionic project?

when i run:
ionic cordova build --prod android
the console shows me the following error:
Subproject Path: CordovaLib
Subproject Path: app
Configure project :app
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
Where:
Script 'C:\Ionic\app\platforms\android\CordovaLib\cordova.gradle' line: 132
What went wrong:
A problem occurred evaluating project ':app'.
No match found
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
C:\Ionic\app\platforms\android\gradlew: Command failed with exit code 1 Error output:
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
Where:
Script 'C:\Ionic\app\platforms\android\CordovaLib\cordova.gradle' line: 132
What went wrong:
A problem occurred evaluating project ':app'.
No match found
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
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd build android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
Does anyone know what I may be doing wrong?

Ionic Build Android

I am trying to build an APK for android, and it keeps giving me the following error. I tried everything out there online and never worked. Please help.
BUILD FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ‘:transformClassesWithJarMergingForDebug’.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/cordova/PermissionHelper.class
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 1 mins 51.939 secs
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ‘:transformClassesWithJarMergingForDebug’.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/cordova/PermissionHelper.class
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[ERROR] An error occurred while running cordova build android (exit code 1).

Ionic Cordova Android build error

I'm trying to build an Android version of a "blank" project with IONIC, now i'm stuck with this error. Has anyone experienced this before, and what would your answer be?
FAILED
BUILD FAILED
Total time: 2.179 secs
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':CordovaLib:processDebugResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':CordovaLib:processDebugResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[ERROR] An error occurred while running cordova build android (exit code 1).
The way i solved this problem is as below:
npm uninstall cordova ionic
npm install -g cordova#7.0.0 ionic#3.19.0
cordova platform rm android
cordova platform add android

Cordova build failed

I have installed Cordova but when I run $ cordova build in the terminal, it shows the following error. Please help me out.
BUILD FAILED
Total time: 8.645 secs
Error: /home/borsha/hello/platforms/android/gradlew: Command failed with exit code 1 Error output:
/home/borsha/hello/android-sdk-linux/build-tools/26.0.1/aapt: 1: /home/borsha/hello/android-sdk-linux/build-tools/26.0.1/aapt: Syntax error: ")" unexpected
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':CordovaLib:processDebugResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
UPDATE
BUILD FAILED
Total time: 2.799 secs
Error: /home/borsha/hello/platforms/android/gradlew: Command failed with exit code 1 Error output:
/home/borsha/hello/android-sdk-linux/build-tools/25.0.0/aapt: 3: /home/borsha/hello/android-sdk-linux/build-tools/25.0.0/aapt: Syntax error: Unterminated quoted string
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':CordovaLib:processDebugResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Try downgrading API level to 23.0.3. You can do that using Android SDK Manager and Android Studio or you can follow the instructions here.
Versions newer than 23.0.3 still have bugs.

Categories

Resources