flutter build apk --split-per-abi fails - android

Helllo I get this erros when I run flutter build apk --split-per-abi
I can't generate my apk. Can you help me please. thank you in advance.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':moneytextformfield:verifyReleaseResources'
> A failure occurred while executing
com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
C:\Users\bahal\.gradle\caches\transforms-2\files-
2.1\c82bf40584b9a53c31dba07a8a48f301\core-1.1.0\res\values\values.xml:142:5-
173:25: AAPT: erro
r: resource android:attr/fontVariationSettings not found.
C:\Users\
----------
bahal\.gradle\caches\transforms-2\files-
2.1\c82bf40584b9a53c31dba07a8a48f301\core-1.1.0\res\values\values.xml:142:5-
173:25: AAPT: erro
r: resource android:attr/ttcIndex not found.

I resolved the problem by removing the money textformfield dependency. Now I'm using the simple textFormField

Related

Execution failed for task ':app:processReleaseResources' AAPT: error: resource android:attr/lStar not found

I need help with a project I am working on, the thing is everything was working fine a few days back, but then I had to travel now when I try to run the command react-native run-android I received the following error
* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
C:\Users\sarat\.gradle\caches\transforms-2\files-2.1\b5c19e49f776b182a5792cfc47bb4d7e\core-1.7.0\res\values\values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.
AAPT: error: resource android:attr/lStar not found.
I suggest you to check your drawable folders by theme.

expo run:android - AAPT: error: duplicate value for resource 'attr/show_buffering' with config ''

When I run expo run:android my app crashed with the error:
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
/Users/joel/Developer/dnp/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:7014: AAPT: error: duplicate value for resource 'attr/show_buffering' with config ''.
/Users/joel/Developer/dnp/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:7014: AAPT: error: resource previously defined here.
/Users/joel/Developer/dnp/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml: AAPT: error: file failed to compile.
The iOS build works (expo run:ios).
I have tried to change minSdkVersion in my build.gradle and i've changed similar values in that file to try and fix it, with no success.
I am running:
react-native#0.64.3
expo#44.0.6

How to solve Flutter app build fail (Execution failed for task ':app:mergeDebugResources'.)?

Launching lib\main.dart on sdk gphone x86 in debug mode...
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:mergeDebugResources'.
Multiple task action failures occurred:
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
C:\Users\ASUS\Documents\bookingapp\Fook\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml: AAPT: error: file failed to compile.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
C:\Users\ASUS\Documents\bookingapp\Fook\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-hi\values-hi.xml: AAPT: error: file failed to compile.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
C:\Users\ASUS\Documents\bookingapp\Fook\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-de\values-de.xml: AAPT: error: file failed to compile.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
C:\Users\ASUS\Documents\bookingapp\Fook\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-lo\values-lo.xml: AAPT: error: file failed to compile.
finally found the problem it was my antivirus that was restricting AAPT to execute and make change in protected folder
Disable File Safeguard
Allow AAPT to Execute
Try a clean build:
flutter clean
Then try running on another device:
flutter run -d DeviceName --release
If you do not need to debug, but you still need logs then a release configuration or a profile config should work for you --profile

Flutter - Error while buiiding the apk in Android Studio

The built failed likely due to AndroidX incompatibilities in a plugin.
The tool is about to try using Jetfier to solve the incompatibility.
I'm using Android Studio for flutter, while building apk, build failed with above exception.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':path_provider:verifyReleaseResources'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking failed
/Users/android/.gradle/caches/transforms-2/files-2.1/7faf2ad74a0b9932e38d86e684646e95/core-1.0.0/res/values/values.xml:57:5-88:25:
AAPT: error: resource android:attr/fontVariationSettings not found.
/Users/android/.gradle/caches/transforms-2/files-2.1/7faf2ad74a0b9932e38d86e684646e95/core-1.0.0/res/values/values.xml:57:5-88:25:
AAPT: error: resource android:attr/ttcIndex not found.
What is causing this? Any suggestions would be helpful.
Flutter Clean and update your package path_provider

Flutter: Resource linking failed

I am getting this error alter connecting my flutter app to the firebase. I dont know whats the reason but I am getting this error:
FAILURE: Build failed with an exception.
What went wrong:
Execution
failed for task :app:process Debug Resources.
Android resource linking failed
In my case i was getting this error :
Execution failed for task ':google_sign_in:verifyReleaseResources'.
with follwing error :
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
Output: D:\flutter\dashboard_app\dashboad_app\build\google_sign_in\intermediates\res\merged\release\values\values.xml:197: error: resource android:attr/fontVariationSettings not f
ound.
D:\flutter\dashboard_app\dashboad_app\build\google_sign_in\intermediates\res\merged\release\values\values.xml:198: error: resource android:attr/ttcIndex not found.
error: failed linking references.
So i updated my google_sign_in sdk to : google_sign_in 4.0.1+1 from google_sdk

Categories

Resources