flutter error app:processDebugResources. how to solve? - android

hi everyone hope everyone is well. i am new to flutter and while building my application for my final year project i came accross this issue..my application is working on ios emulator but when i plug it into my andriod phone i come across this issue please advise
What went wrong:
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR:/Users/Desktop/c3mobiredo/build/app/intermediates/packaged_manifests/debug/AndroidManifest.xml:44: AAPT: error: resource mipmap/ic_launcher (aka com.example.c3mobiredo:mipmap/ic_launcher) not found.
ERROR:/Users/Desktop/c3mobiredo/build/app/intermediates/packaged_manifests/debug/AndroidManifest.xml:50: AAPT: error: resource style/LaunchTheme (aka com.example.c3mobiredo:style/LaunchTheme) not found.
ERROR:/Users/Desktop/c3mobiredo/build/app/intermediates/packaged_manifests/debug/AndroidManifest.xml:65: AAPT: error: resource style/NormalTheme (aka com.example.c3mobiredo:style/NormalTheme) not found.
please let me know if you need additional information from me

It's about files not being found. Does the android folder in your project have a structure like this?

Related

I'm getting this error while tryng to build the aab files for my android application: I receive the next message: failed processing manifest

I'm currently finishing the build of my app but I got an error where the mesagge says failed processing manifest, searching for more, I found the next error messages:
Android resource linking failed
C:\AndroidStudioProjects\LogisticaAB\app\build\intermediates\bundle_manifest\release\AndroidManifest.xml:18: error: resource mipmap/ic_launcher_ab (aka com.altba.logisticaab:mipmap/ic_launcher_ab) not found.
C:\AndroidStudioProjects\LogisticaAB\app\build\intermediates\bundle_manifest\release\AndroidManifest.xml:18: error: resource mipmap/ic_launcher_ab_round (aka com.altba.logisticaab:mipmap/ic_launcher_ab_round) not found.
error: failed processing manifest.
But the archives for the icons are in their place, and while testing the app it works well. What can I do to resolve this?

AAPT: Error: Resource attr/(various) not found

Having all kinds of problems tonight. Downloaded updated Android Studio and Gradle and coded a little and then started getting these errors. Have tried uninstalling android studio, changing the version of Gradle in my build file to an earlier version, using an older version of android studio, deleting the Gradle cache, and maybe one or three other things. Older versions of Android Studio now say my project must be used with Android 3.6.
These things the build output is complaining about all seem to exist in the file it's talking about at the exact line. Tried commenting them out... that didn't work either.
Little out of my league here. Any of you gray hairs see something I'm missing?
Any help much appreciated.
===========================================================================
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:268:5-4347:
AAPT: error: resource attr/flow_horizontalSeparator (aka
com.myproject.myproject:attr/flow_horizontalSeparator) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:268:5-4347:
AAPT: error: resource attr/flow_verticalSeparator (aka
com.myproject.myproject:attr/flow_verticalSeparator) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:269:5-3548:
AAPT: error: resource attr/flow_horizontalSeparator (aka
com.myproject.myproject:attr/flow_horizontalSeparator) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:269:5-3548:
AAPT: error: resource attr/flow_verticalSeparator (aka
com.myproject.myproject:attr/flow_verticalSeparator) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:271:5-4382:
AAPT: error: resource attr/flow_horizontalSeparator (aka
com.myproject.myproject:attr/flow_horizontalSeparator) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:271:5-4382:
AAPT: error: resource attr/flow_verticalSeparator (aka
com.myproject.myproject:attr/flow_verticalSeparator) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:271:5-4382:
AAPT: error: resource attr/motionProgress (aka
com.myproject.myproject:attr/motionProgress) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:274:5-588:
AAPT: error: resource attr/motionProgress (aka
com.myproject.myproject:attr/motionProgress) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:275:5-652:
AAPT: error: resource attr/motionProgress (aka
com.myproject.myproject:attr/motionProgress) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:284:5-653:
AAPT: error: resource attr/motionProgress (aka
com.myproject.myproject:attr/motionProgress) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:284:5-653:
AAPT: error: resource attr/waveDecay (aka
com.myproject.myproject:attr/waveDecay) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:288:5-232:
AAPT: error: resource attr/motionPathRotate (aka
com.myproject.myproject:attr/motionPathRotate) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:290:5-295:36:
AAPT: error: resource attr/motionProgress (aka
com.myproject.myproject:attr/motionProgress) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:318:5-232:
AAPT: error: resource attr/motionProgress (aka
com.myproject.myproject:attr/motionProgress) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:322:5-335:98:
AAPT: error: reso
Update:
Added implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4' to my app's build.gradle file and it worked.
Pretty simple question but going to leave this up there. Might save someone a few hours of ignorance.
My case was really different. I had set android:text=" ??? " in my layout file, when I changed it to android:text=" ? " it worked. I have no idea why this works, maybe it helps someone. It took me hours to find the issue.

How to fix linking error on Android project

My compiler just showed this error. I have no idea what happened.
I'm testing a project which runs with firebase. On its request, I just went to project structure to change my minsdk to 26, but after I changed it, it provides these errors.
Since this is my first Android project, I have no idea what has happened.
Can somebody give me a hand and help me get through it?
Android resource linking failed
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1894: error: resource drawable/edit_text_background_dark_round (aka com.example.myapplication:drawable/edit_text_background_dark_round) not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1897: error: resource drawable/ic_down_arrow (aka com.example.myapplication:drawable/ic_down_arrow) not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v21\values-v21.xml:282: error: resource drawable/edit_text_background_dark_round (aka com.example.myapplication:drawable/edit_text_background_dark_round) not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v21\values-v21.xml:285: error: resource drawable/ic_down_arrow (aka com.example.myapplication:drawable/ic_down_arrow) not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2786: error: resource android:attr/fontVariationSettings not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2787: error: resource android:attr/ttcIndex not found.
error: failed linking references.
check XML files cause "android:attr/dialogCornerRadius not found"
means that 'dialogCornerRadius' is not defined , you can replace it
with value like "2dp" or initialise it in ' dimens.xml' check this
link to create 'dimen' file
How to use dimens.xml in Android?

resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found

When I want to try the application on the emulator or extract the .apk
I face this error
Android resource linking failed
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
error: failed linking references.
I think your are applying that style wrong.
Try to set the style of your view in your layout (.xml file) this way:
style="#style/TextAppearance.Material.Widget.Button.Borderless.Colored"
Let me know if that helped!

React Native suddenly fail to build

So, I was doing some modification on my code this morning and it runs just like it used to. And then when I tried to run react-native run-android again after few hours, I got below error:
/Users/mimicreative/Documents/Kerja/Project/PictalogiDev/android/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/25.0.0/res/layout/abc_action_bar_title_item.xml:21:22-76: AAPT: No resource found that matches the given name (at 'style' with value '#style/RtlOverlay.Widget.AppCompat.ActionBar.TitleItem').
/Users/mimicreative/Documents/Kerja/Project/PictalogiDev/android/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/25.0.0/res/layout/abc_action_bar_title_item.xml:30:41-91: AAPT: No resource found that matches the given name (at 'layout_marginTop' with value '#dimen/abc_action_bar_subtitle_top_margin_material').
/Users/mimicreative/Documents/Kerja/Project/PictalogiDev/android/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/25.0.0/res/layout/abc_action_bar_view_list_nav_layout.xml:22:22-48: AAPT: No resource found that matches the given name (at 'style' with value '?attr/actionBarTabBarStyle').
So much line of error like above then at the end of the line I got this:
Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
How can I fix this? What causes the error?
For anyone having this issue, you just need to update the Android Support Repository using Android SDK Manager.

Categories

Resources