Flutter Android Build failed with an exception 'torch:verifyReleaseResources' - android

I'm using Torch plugin with Camera plugin for back flash. It works fine with iOS, but not with Android. When I tried to Create release build for Android it gives me errors.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':torch:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
/Users/apple/.gradle/caches/transforms-2/files-2.1/790c8a51d6267afe36c98b9a0bc454cb/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontVariationSettings not found.
/Users/apple/.gradle/caches/transforms-2/files-2.1/790c8a51d6267afe36c98b9a0bc454cb/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/ttcIndex not 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 2m 13s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 134.5s (!)
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin app_review...
Running Gradle task 'assembleAarRelease'...
Running Gradle task 'assembleAarRelease'... Done 0.0s
Sending crash report to Google.
Crash report sent (report ID: 97f69452e4767517)
Oops; flutter has exited unexpectedly.

Related

The built failed likely due to AndroidX incompatibilities in a plugin

Flutter app running in debug mode fine. Errors on releasing the app.
Running Gradle task 'assembleRelease'... 1434.8s (!)
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin android_intent...
Running Gradle task 'assembleAarRelease'... 93.5s
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android_intent'.
What I have tried:
Removed 'android_intent' plugin. After removing, still having the same issue with cloud_firestore.
* What went wrong:
Execution failed for task ':flutter_appavailability:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
/home/mkmalik/.gradle/caches/transforms-2/files-2.1/fa16a5b23fa3b0f70fd87fe1ad317210/core-1.1.0/res/values/values.xml:142:5-173:25: AAPT: error: resource android:attr/fontVariationSettings not found.
/home/mkmalik/.gradle/caches/transforms-2/files-2.1/fa16a5b23fa3b0f70fd87fe1ad317210/core-1.1.0/res/values/values.xml:142:5-173:25: AAPT: error: resource android:attr/ttcIndex not 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 6m 38s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 407.1s (!)
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the
incompatibility.
Building plugin cloud_firestore...
The plugin cloud_firestore could not be built due to the issue above.
Updated Gradle to 4.0.1 and compileSdkVersion to 30. And managed to release the app (with 7 warnings from native code). But on the device, it immediately stops (only white screen) after a sec.
Flutter 1.22.5
Problem were with flutter_appavailability.
Just removed and problem solved.

How to fix error - failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade

I am creating a flutter app and when I run my code, I get this error message:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\Users\aayus\OneDrive\Desktop\MYP 5\IB Unit ICT\flutter app buddy\flutter_application_buddy> & 'c:\Users\aayus\OneDrive\Desktop\MYP 5\IB Unit ICT\flutter app buddy\flutter_application_buddy\lib\main.dart'
PS C:\Users\aayus\OneDrive\Desktop\MYP 5\IB Unit ICT\flutter app buddy\flutter_application_buddy> flutter run
Launching lib\main.dart on AC2001 in debug mode...
Parameter format not correct -
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
AAPT: error: failed to open APK: Invalid file.
* 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 14s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 15.3s
Exception: Gradle task assembleDebug failed with exit code 1
PS C:\Users\aayus\OneDrive\Desktop\MYP 5\IB Unit ICT\flutter app buddy\flutter_application_buddy>
Can someone please guide me with this and help me fix this error?
Did you manually migrate your Flutter project to AndroidX? If yes, I suggest checking the compileSdkVersion and make sure that it's at least set to 28. This issue seems to be similar to this GitHub issue thread.

Cordova Issue "Execution failed for task ':app:mergeDebugResources'."

I am getting below issue during "cordova build":
My Android version:8.1.0
Cordova Version:Latest
Gradle Version:4.2
Getting it due to onesignal plugin but it gone when I remove plugin
?? actionable tasks: ? executed, ?? up-to-date
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
C:\Users\AJ\Desktop\blogapp\platforms\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v२३\values-v२३.xml: error: invalid configuration 'v२३'.
* 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
I abled to fix the issue my reinstalling cordova and android studio, This issue occur because of wrongly configured SDKs

I'm having trouble deploying my flutter project due to firebase dependencies

I'm trying to set up firebase for both android and ios. I've tried using different versions in pubspec.yaml, but i'm still getting errors like this. Thanks for the help in advance.
FAILURE: Build failed with an exception.
*What went wrong: Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
C:\Users\13363\.gradle\caches\transforms-2\files-2.1\354fc33358371181aa1b0a8e262a9145\jetified-play-services-auth-16.0.1\res\drawable-watch-v20\common_google_signin_btn_text_dark_normal.xml:9: AAPT: error: resource drawable/googleg_standard_color_18 (aka com.example.catbox:drawable/googleg_standard_color_18) not found.
C:\Users\13363\.gradle\caches\transforms-2\files-2.1\354fc33358371181aa1b0a8e262a9145\jetified-play-services-auth-16.0.1\res\drawable-watch-v20\common_google_signin_btn_text_disabled.xml:16: AAPT: error: resource drawable/googleg_disabled_color_18 (aka com.example.catbox:drawable/googleg_disabled_color_18) not found.
C:\Users\13363\.gradle\caches\transforms-2\files-2.1\354fc33358371181aa1b0a8e262a9145\jetified-play-services-auth-16.0.1\res\drawable-watch-v20\common_google_signin_btn_text_light_normal.xml:9: AAPT: error: resource drawable/googleg_standard_color_18 (aka com.example.catbox:drawable/googleg_standard_color_18) not 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 21s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin cloud_firestore...
Running Gradle task 'assembleAarRelease'...
Finished with error: The plugin cloud_firestore could not be built due to the issue above.

"Execution failed for task ':app:packageDebug' > Failed to generate v1 signature" exception while compiling Flutter

i have a problem with the compilation of flutter
i have already try to debug without success
Resolving dependencies... 4,5s
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:packageDebug'.
Failed to generate v1 signature
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 10s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 11,3s
Gradle task assembleDebug failed with exit code 1
I think is a problem from gradle but i don't know how to solve that
X Android SDK file not found: adb.
X Flutter plugin not installed.
X Dart plugin not installed.
You need to install Dart and Flutter :
Android Studio:Go to Tools>SDK Manager>Plugins
VS Code :

Categories

Resources