React Native suddenly fail to build - android

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.

Related

flutter error app:processDebugResources. how to solve?

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?

I downloaded the android source, no build processing, so how do I build it?

I create a new Android project, and then Android music source AndroidManifest.xml, src, res file copied to the new project, but there was a mistake
F:\projcet0301\Music3\app\build\intermediates\res\merged\debug\values\values.xml
Error:(601, 34) No resource found that matches the given name (at 'colorAccent' with value '#color/colorAccent').
Error:(601, 34) No resource found that matches the given name (at 'colorAccent' with value '#color/colorAccent').
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

Using FloatingActionButton and adding library design prevents build

while trying to add a FloatingActionButton to my layout, I have been told by AndroidStudio, that I need to add the library design for that:
"This operation requires the library design.
Would you like to add this library now?"
I clicked "Ok", and now the build completely fails.
So far I have managed to find a line in the file "build.gradle", which I hoped was responsible for the issue:
compile 'com.android.support:design:25.0.0'
I tried to comment it out and rebuild, but the error remains.
The errors given are:
C:\AndroidProjects\ChartExample\app\src\main\res\layout\child_edit.xml
Error:(20, 39) No resource found that matches the given name (at 'layout_alignBaseline' with value '#id/etFirstName').
Error:(38, 39) No resource found that matches the given name (at 'layout_alignBaseline' with value '#id/etLastName').
Error:(54, 39) No resource found that matches the given name (at 'layout_alignBaseline' with value '#id/etBirthday').
Error:(73, 39) No resource found that matches the given name (at 'layout_alignBaseline' with value '#id/rbFemale').
C:\AndroidProjects\ChartExample\app\build\intermediates\res\merged\debug\layout\child_edit.xml
Error:(20, 39) No resource found that matches the given name (at 'layout_alignBaseline' with value '#id/etFirstName').
Error:(38, 39) No resource found that matches the given name (at 'layout_alignBaseline' with value '#id/etLastName').
Error:(54, 39) No resource found that matches the given name (at 'layout_alignBaseline' with value '#id/etBirthday').
Error:(73, 39) No resource found that matches the given name (at 'layout_alignBaseline' with value '#id/rbFemale').
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
I guess these errors are mainly because the build didn't finish and some resource files haven't been generated, but I'm not sure.
Does someone have an idea how to undo what I have done to my project by hitting this fatal button?
Thanks for any help you can give.
Carsten
The reason was that all of the UI elements mentioned in the error messages had a cycle reference in the layout xml. The error had nothing to do with the libraries added.

Android studio: why do I get errors when I just run the simplest code

the errors imgetting are :
Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Android sdk\build-tools\23.0.2\aapt.exe'' finished with non-zero exit value 1
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
I'm sorry if these questions might seem stupid :).
every time I run the simplest code like just a text box with something is written in it I get these errors.
Also, when I run the default nexus 5 simulators it just loads up to the part where it says android but nothing after that.
Thanks much appreciated.
Try to change the target sdk to 23 and compile build version to 23.1.0 in your app gradle

Running the android in-app billing example aplication

This will probably sound silly but I have no idea how to make the application work.
tutorial for in-app billing
Just like the tutorial says I downloaded the package, I found the files. The problem is there's no project file and I can't get it to work in eclipse.
Anyone used the example app?
I've used it successfully...what seems to be the problem? Once you download the files, bring the project into Eclipse by select "Newn Android Project", "Create project form existing source" and the "Finish." From there, follow the directions regarding changing the package name, etc...
As far as I can determine, the sample Dungeons in-app billing project that I downloaded via Android SDK Manager, does not even compile (this seems to have been fixed, see my comments later in this message..).
As a check, I ran a find command to search for one of the missing resources:
/cygdrive/k/android-sdk-windows/extras/google/play_billing $ find . -name '*.xml' -exec grep edit_payload_title {} \; -print
android:text="#string/edit_payload_title" />
./res/layout/edit_payload.xml
/cygdrive/k/android-sdk-windows/extras/google/play_billing $
As you can see, the resource #string_edit_payload_title is referenced once, but never defined in any of the xml files..
Description Resource Path Location Type
error: Error: No resource found that matches the given name (at 'background' with value '#color/screen_background'). item_row.xml /Dungeons/res/layout line 20 Android AAPT Problem
error: Error: No resource found that matches the given name (at 'background' with value '#color/screen_background'). main.xml /Dungeons/res/layout line 20 Android AAPT Problem
error: Error: No resource found that matches the given name (at 'prompt' with value '#string/select_item'). main.xml /Dungeons/res/layout line 52 Android AAPT Problem
error: Error: No resource found that matches the given name (at 'text' with value '#string/buy'). main.xml /Dungeons/res/layout line 47 Android AAPT Problem
error: Error: No resource found that matches the given name (at 'text' with value '#string/edit_payload_title'). edit_payload.xml /Dungeons/res/layout line 25 Android AAPT Problem
error: Error: No resource found that matches the given name (at 'text' with value '#string/edit_payload'). main.xml /Dungeons/res/layout line 58 Android AAPT Problem
error: Error: No resource found that matches the given name (at 'text' with value '#string/items_for_sale'). main.xml /Dungeons/res/layout line 34 Android AAPT Problem
error: Error: No resource found that matches the given name (at 'text' with value '#string/items_you_own'). main.xml /Dungeons/res/layout line 64 Android AAPT Problem
error: Error: No resource found that matches the given name (at 'text' with value '#string/recent_transactions'). main.xml /Dungeons/res/layout line 80 Android AAPT Problem
error: Error: No resource found that matches the given name (at 'textColor' with value '#color/error_message'). main.xml /Dungeons/res/layout line 28 Android AAPT Problem
** UPDATE ** I just downloaded it again and it seems to be resolved. At least, it builds and deploys now.. And the string definitions seem to be in place now..
/cygdrive/k/android-sdk-windows/extras/google/play_billing $ find . -name '*.xml' -exec grep edit_payload_title {} \; -print
android:text="#string/edit_payload_title" />
./res/layout/edit_payload.xml
<string name="edit_payload_title">Edit the developer payload associated with this purchase</string>
./res/values/strings.xml

Categories

Resources