Flutter: Resource linking failed - android

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

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.

cordova run android:Execution failed for task ':app:processDebugResources'

i have a problem with run android :
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: C:\Users\myapp\platforms\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2518: error: resource android:attr/lStar not found.
error: failed linking references.

flutter build apk --split-per-abi fails

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

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

Build failure after adding AdView to layout

I was following this guide at https://developers.google.com/admob/android/quick-start and https://developers.google.com/admob/android/banner on how to set up an AdView in my layout but
I'm getting the following error after building
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':base:processDebugFeatureResources'.
Android resource linking failed
Output: D:\testproject\base\build\intermediates\merged_manifests\debugFeature\processDebugFeatureManifest\merged\AndroidManifest.xml:63: error: resource integer/google_play_services_version (aka test.dev.com.example.app:integer/google_play_services_version) not found.
error: failed processing manifest.

Categories

Resources