FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:mergeProdDebugResources'.
Multiple task action failures occurred:
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
AAPT: C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\Test\app\build\intermediates\res\merged\prod\debug: error: The system cannot find the file specified. (2).
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
AAPT: C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\Test\app\build\intermediates\res\merged\prod\debug: error: The system cannot find the file specified. (2).
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
AAPT: C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\Test\app\build\intermediates\res\merged\prod\debug: error: The system cannot find the file specified. (2).
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
AAPT: C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\Test\app\build\intermediates\res\merged\prod\debug: error: The system cannot find the file specified. (2).
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
AAPT: C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\Test\app\build\intermediates\res\merged\prod\debug: error: The system cannot find the file specified. (2).
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
AAPT: C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\Test\app\build\intermediates\res\merged\prod\debug: error: The system cannot find the file specified. (2).
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
AAPT: C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\Test\app\build\intermediates\res\merged\prod\debug: error: The system cannot find the file specified. (2).
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
AAPT: C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\Test\app\build\intermediates\res\merged\prod\debug: error: The system cannot find the file specified. (2).
i used in jenkins next command: assembleDebug -g C:\gradle_home
How i can solve this problem?
because the input project file path is too long, aapt can't work corretly with it.
changing the project workspace dir of jenkins can fix this error.
Related
so the problem is that i am developing an app using firebase but when i want to test it prints this out with a picture i looked at similar problems how to reinstall avst ok it was not working i replacelt some code in graple not so i turn for help. Can help me someone
Execution failed for task ':app:mergeDebugResources'.
Multiple task action failures occurred:
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Resource compilation failed. Check logs for details.
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Resource compilation failed. Check logs for details.
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Resource compilation failed. Check logs for details.
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Resource compilation failed. Check logs for details.
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Resource compilation failed. Check logs for details./
Pic to codes https://drive.google.com/folderview?id=1Iyq6urvomzDoyco6_mfvotMzGzBUnHim
Please refer the error message given below.Every time I am starting an empty activity, I am getting the following error. This is my 6th time trying every possible solution out there.
Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar]
C:\Users\cheik\.gradle\caches\transforms-1\files-1.1\appcompat-v7-28.0.0.aar\396858f1c27f92ab2ca967b96e3a0da9\res\values-v28\values-v28.xml
Error:(9, 5) error: resource android:attr/dialogCornerRadius not found.
C:\Users\cheik\.gradle\caches\transforms-1\files-1.1\appcompat-v7-28.0.0.aar\396858f1c27f92ab2ca967b96e3a0da9\res\values\values.xml
Error:(1304, 5) error: resource android:attr/fontVariationSettings not found.
Error:(1304, 5) error: resource android:attr/ttcIndex not found.
C:\Users\cheik\OneDrive\Desktop\MYAPP\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml
Error:(11) error: resource android:attr/dialogCornerRadius not found.
Error:(7) resource android:attr/dialogCornerRadius not found.
Error:(11) resource android:attr/dialogCornerRadius not found.
C:\Users\cheik\OneDrive\Desktop\MYAPP\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Error:(514) resource android:attr/fontVariationSettings not found.
Error:(514) resource android:attr/ttcIndex not found.
Error:failed linking references.
Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:processDebugResources'.
> Failed to execute aapt
Information:BUILD FAILED in 1s
Information:13 errors
Information:0 warnings
Information:See complete output in console
Experienced this issue a while ago with Android studio 3.5, have you tried to set:
compileSdkVersion 28 or compileSdkVersion 29 in my case, got to: app > build.gradle, this solved it for me.
you can also try to file > invalidate caches / restart
i noticed you're still on AppCompat 28 library, i suggest you migrate to AndroidX, Refactor > migrate to AndroidX
This question already has answers here:
Error:resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found
(4 answers)
Closed 4 years ago.
Configure project :react-native-vector-icons
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
error: resource
android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource
android:style/TextAppearance.Material.Widget.Button.Colored not found.
/home/aras/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/37bde114cf44a5a3196253573d3981be/res/values-v26/values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.
/home/aras/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/37bde114cf44a5a3196253573d3981be/res/values-v26/values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.
/home/aras/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/37bde114cf44a5a3196253573d3981be/res/values-v26/values-v26.xml:17:5-93: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
/home/aras/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/37bde114cf44a5a3196253573d3981be/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/fontStyle not found.
/home/aras/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/37bde114cf44a5a3196253573d3981be/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/font not found.
/home/aras/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/37bde114cf44a5a3196253573d3981be/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/fontWeight not found.
error: failed linking references.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-user-agent:verifyReleaseResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
* 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 2s
75 actionable tasks: 2 executed, 73 up-to-date
Check for gradle dependency for support library version mismatch in your all npm build.gradle.
when I run my project with assembleDebug , I get this error
:app:mergeDebugResources
C:\Users\Deepan\Downloads\googleads-mobile-android-examples-
master\googleads-mobile-android-examples-master\java\admob\NativeAdvancedExample\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-sw600dp-v13\values-sw600dp-v13.xml: error: file not found.
Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
:app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
I got the same problem and moving entire project to another location where the path is shorter solved it. You also have a quite long path.
File values-sw600dp-v13.xml
is missing from values-sw600dp-v13 folder.
past the file in values-sw600dp-v13 and it should work.
Above error along with these errors and cannot resolve R symbol error.
Error:java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request.
Check logs for details.
Error:Execution failed for task ':app:mergeDebugResources'.
Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request.
Check logs for details.
I tried all solutions given like rebuild,invalidate caches and restart, changed dependencies as well and clean project did not used any images. I installed android studio 3.0.1 in ubuntu 14.04 OS type 32-bit
Is this a installed android stdio version mistake please help me out.